How to configure Flow designer wait for condition based on work notes and state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 02:18 AM
Hi, in flow designer I have created a wait for condition based on a catalog task record I would like this wait for condition to only execute if the state is closed complete or if the work notes contains the string ‘ready to begin’ and i needed help please with creating a script for this in the wait for condition?
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 02:30 AM
Hello @Harrys09 ,
Please use the below image as referrence and add the below code :
var state = fd_data.trigger.current.state;
if (state=='3' || shortDesc.indexOf('ready to begin')>-1)
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 03:15 AM
Thank you for your help! @Nayan Dhamane
I configured the code in but I keep getting an error that the ‘current’ is undefined input. Do you have any suggestions please on what I should do?