- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 05:29 AM
Hi,
I'm working on a work flow for a catalog. My workflow is on 'sc_req_item' table.
We have an inbound action from where some values are captured and from there is stored on a separate custom table(not in any way related to RITM table) .I want to make the workflow wait until these values are set on the custom table fields .Once the values are set on the custom table fields the workflow should transition to the next step (i.e. close the RITM) after wait for condition.
This is the workflow below and the wait for condition script:
Tried 2 ways of wait for condition script but neither worked:
1.
2.
Can please help me to understand where am I wrong and how to achieve the above.
Thanks in advance,
Aindrila
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 12:48 AM
Hi Nayan,
Thanks for the documentation!!
Tried using a different approach which solved my issue, used timer to create a loop and keep checking until the values are updated, which helped in my case.
Thanks for your inputs though!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 05:36 AM
Hello @Aindrila Mondal ,
The script looks good to me but the thing I am wondering is that you have added the and condition with every variable meaning if anything is empty then you flow will be stoped.
To debug i would suggest you to add logs in each if loop. also in the log check if the all variables are not getting empty values.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 09:59 PM
Hi Nayana,
Thanks for your reply!!!
Yes ,you guessed correct that what i want.
I used logs to debug and realized that it is working properly only, initially when the field values are blank the workflow is waiting at the wait for condition (for this case the log printed null values as field values not yet filled).
But after the field values are filled the workflow doesn't proceed from wait for condition to next step. How to make the workflow proceed again.
It's stuck here:
Thanks in advance.
Any help is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 12:20 AM
Hello @Aindrila Mondal ,
try the method mentioned in below post:
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 12:48 AM
Hi Nayan,
Thanks for the documentation!!
Tried using a different approach which solved my issue, used timer to create a loop and keep checking until the values are updated, which helped in my case.
Thanks for your inputs though!!