Hello All,
I have a requirement, which I'm unable to find a solution. I have a google sheet based table "Package" where I have 3 columns; Start date, end date and booking status (enum type; Pending, Active and Expired).
Logic to update Status field:
I've created an action on "Package" table but not sure how to schedule it? "Bot" is not giving me any option to schedule an action on regular interval. Please help.
Solved! Go to Solution.
Create a Scheduled bot for daily and enable ForEachRowInTable option. Then in the filter condition use this formula [Start Date]<=Today()
In Run Process section choose run a data action and click Set Row Values. In Set these Columns set the value for Status like below
iFS(
AND([Start Date]<=Today(),[End Date]>=Today()),"Active",
[End Date]<Today(),"Expired"
)
Run the automation to check the results.
Create a Scheduled bot for daily and enable ForEachRowInTable option. Then in the filter condition use this formula [Start Date]<=Today()
In Run Process section choose run a data action and click Set Row Values. In Set these Columns set the value for Status like below
iFS(
AND([Start Date]<=Today(),[End Date]>=Today()),"Active",
[End Date]<Today(),"Expired"
)
Run the automation to check the results.
Thanks Varun for the response. I was missing "run a data action" in the process section. It works now.
User | Count |
---|---|
16 | |
13 | |
8 | |
7 | |
4 |