Wait for condition in workflow is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 02:12 PM
Hi,
I am trying to write a script inside wait for condition activity in Workflow. not sure why it is not executing.
I have also set up two separate conditions so that based on the answer is set to true or false it should flow to the particular flow.
my script below
Screen snap of the info message in the logs.
Conditions inside the Wait for Condition activity
Kindly help..
Thanks,
Andy
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 02:23 PM
Hi,
Just to clarify;
The Wait for condition activity causes the workflow to wait at this activity until the current record matches the specified condition.
You are writing a glide record to query something that is not the current record; correct? I think this may be your issue.
Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 02:28 PM
Hi,
Thanks for your response.
Actually, i have a UI Action button in the form which updates the record after changing the necessary fields i mentioned in the script.
So once the record is updated this should be triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 02:32 PM
Your conditions on lines 9 and 13 are checking values that don't belong to the current record associated with the workflow though?
Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 02:40 PM
They are checking the values of the current record. those values get updated when the UI action is triggered.
If any changes are needed to the script, please suggest them.
Andy