It will be nice to have a delay step within a process.
For my use case, after creating a file via a task, it takes few seconds before we can access to the file. I like to put some delay, and then proceed other steps.
Please also put โAutomationโ, โTaskโ, โProcessโ tags for topic creations.
Thanks
I am not sure how frequent AppSheet will check for the condition in โWait for a conditionโ step. Can anyone provide that information?
I can record a timestamp in a previous step. And then, use that timestamp in a โWait for a conditionโ step to delay for next step but I like to know how frequent the condition will be check. Will it be checked indefinitely until the condition is met?
Thanks
Hi Steven, when a data change happens, and the wait step will be triggered immediately. We are not using polling mechanism to query for condition result.
Hm, in that case, the description for the condition checker is misleading. It said โWait until this condition is trueโ.
So is โWait for a conditionโ the same as using โBranch on a condition โ Yesโ flow?
Hi Steven, sorry for not being clear. โwait stepโ and โbranch on a conditionโ is different. For wait step, assume the condition is column [Approve] = true, and right now the [Approve] = false, then it will keep waiting. But we donโt have any polling mechanism. Once [Approve] because true, then process will keep executing immediately.
Got it. Thanks. So we will need some kind of a delay mechanism in a process
Hi Steven,
We are planning to release a new feature on the wait step where you can simply wait a period of time.
The new Wait step type allows the process to pause execution and before resuming:
Note: Process execution will not resume at the exact time that time period is met. There may be a delay of up to 10 minutes. Therefore, the Wait step does not support use cases where accurate timing is required.
Would you be interested in getting early access? If yes, just let me know your appsheet user id.
Thanks!
Sounds great. My ID is 540843.
Is there any chance that the minimum allowed time can be lower when this go live?
Hi Steven,
You user account has been added to the rollout for the new feature now.
As for lowering the minimum period, the Wait Step is targeting human-in-the-loop interactions for long running processes, so 10 minutes would be a reasonable minimum interval and we will stick with this in the initial release of the feature.
Thanks!
Please add me in ID 255473 Thanks
Hi Anthony, you have been added to the rollout for the new wait step feature.
Thanks!
Thanks - found a small issue with it - I sent a Notification after a Wait step and it ignored my appโs time zone (UTC +2) - it used UTC when formatting the time using <<_NOW>>
Hi Anthony,
Can you share the expression you used for the โPeriodโ field?
Thanks!
โ000:10:00โ
With this static period expression, the process will be paused for 10 minutes (or another data change event that satisfies the โconditionโ field) once it hits the wait step.
So you meant in the Notification body, you used <<_NOW>>, which should honor your appโs time zone, but instead generated a UTC timestamp?
Thanks!
yes thatโs the issue. - the exact same notification formats correctly when i remove the delay step
got it.
Thanks for the detailed explanation!
Will look into fixing the issue.
Welcome! thanks for the useful function
Hi Anthony,
Upon further investigation, this is an expected behavior/limitation given the current implementation.
The timezone & locale information are inherent from the request that is sent from your device (including browser) that is running the app.
But for waking up a suspended process after the delay, the request does NOT come from your device anymore. Itโs from another google cloud service and it does not know about the timezone of your device. As a result, the default timezone is used, which is UTC.
We will ensure this limitation/behavior is well documented when we release this version of the wait step feature.
Thanks!
My workaround : add my locale time offset of +2 hours:
e.g.
Task Report Sent at : <<NOW() + โ002:00:00โ>>
Please add me ID: 1949277 thanks
Hi Fredy,
You have been added to the early access now.
Thanks!
Thanks for adding @Steven_Aung , I would like to corroborate the operation of the wait condition action, if when the bot is executed the condition is met, the bot continues the flow? or after 10 minutes it resumes again ?. It happens to me that when the bot is executed, the condition is already being met and the bot continues, a behavior that I think is great. But if I wanted to know if after time it runs again?
Hi @FREDY_ORTEGON the short answer is No, it wonโt run again
There could be 3 scenarios if you configure a wait step to have both a condition and a period (say 10 minutes in the screenshot above):
When you first enter the wait step, if the condition is NOT met, the process will go to โsleepโ until โ
Hope this explains.
Thanks!
It has been clear to me, thank you for your answer!!!
Hi @Zhifeng_Lin
On the screenshot I see elsewhere, there is โtimeoutโ step immediately after the Wait for a period of time step. Why and when technically this timeout will happen? Could you elabrate the case where timeout would happen?
Thank you.
Hi Koichi,
The new wait step is to have two different modes of operation โ
With the use case shown in the screenshot above, the wait step is to
"Wait for approval input for 10 minutes; if there is no decision after 10 minutes, send an email and auto reject the purchase"
Assuming we have a simple โpurchase approvalโ table with the following columns
Initially, a row [โABCโ, โvegetablesโ, โ$100โ, โโ] (approved column being empty) triggers the bot and takes the process into โsleepโ
Hope the above example clarifies.
Thanks!
Thanks @Zhifeng_Lin
Good example. Now crystal clear!
Sorry, just one more question.
Now I understand we are going to able to add โPeriodโ for wait for a condition step, in addition to pure Wait for a period of time step.
On both case, what is going to happen after 30 days?
Let me assume I set the wait for a condition step, but I leave the โperiodโ field blank. Then without further interaction to the app, 30 days elapsed.
What is going to happen in this case? Assuming we have further steps after this wait for a condition of the step. In this case, BOT will die out without doing the rest of process, right?
To the contrary, if we set the period as 30 days, then without data changes, timeout to be triggered. In case we set NULL for this timeout blanch, I belive both setting will work equally.
Make sense?
Hi Koichi, to further clarify:
With โWait for a period of timeโ selected, you are supposed to specify a period (between 10 minutes and 30 days), and the process will always wake up and resume the remaining flow after the specified period of time. And leaving it blank will default to 30 days. We should probably throw an error on โSaveโ to make sure a valid period is entered.
With โWait for a conditionโ, there is now a โCustom timeoutโ checkbox
a. if โCustom timeoutโ is not selected (equivalent to having โperiodโ blank), by default, after 30 days, the process is considered โtimeoutโ and โdieโ without doing the rest of the process (this is the โoldโ wait step behavior).
b. if โCustom timeoutโ is selected, you are supposed to provide a period again. Leaving it blank will default to 30 days. (We should probably throw an error if period is empty). And the process will not โdieโ but always resume after the specified period of time.
Yes, that s for sure. Better to thorw the error when the app creator leave the filed blank.
This is also tricky part.
To avoid any possible confusion like this to occur, I would suggest we see error message in case we leave the field blank all the time. Thank you anyway.
Sorry to jump on the bandwagon here, but I would absolutely love to be added to early access for this.
I have A LOT of use cases for this!
App ID: 286964
This would be an excellent feature, especially seeing as many automation platforms use this regularly and it is what a lot of large scale clients expect on that front.
Iโm very excited to see what the future brings!
Hi @Ryan_Mortimer
I have added your account to the rollout of the new feature.
Thanks!
Thank you very much!
I look forward to playing around with it!
HI @Zhifeng_Lin please add me to the test the behavior please, my id: 4620920.
thanks in advance
Jacob
Hi @jderechin ,
This is now available to all AppSheet users, please see this announcement โ
Thanks!
thank you so much
User | Count |
---|---|
16 | |
11 | |
9 | |
8 | |
4 |