The CreatorCon Call for Content is officially open! Get started here.

How to configure Flow designer wait for condition based on work notes and state

Harrys09
Tera Contributor

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 

2 REPLIES 2

Nayan  Dhamane
Kilo Sage

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)

Screenshot 2023-08-21 at 3.29.59 PM.png

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

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?