Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Wait for Condition in Subflow does not execute/triggerd (Script Condition) - Encoded Query

Meloper
Kilo Sage

hi,

i have a subflow!

This Flow i getting an Incident as an Input form the Main FLow. Reference.Table

i use this record in wait for condition.

In the Conditions i use a script.

Because i had Problems i just try to create a log.

Meloper_0-1675771534774.png

 

I would expect that, if i make an update on that record (input Reccord) like write a new description.
The log should be created.
but it seems to be that the wait for conditon does not been triggerd.

 

I Using the Test Button in the flow itself!
But also if i start the flow with creating a new record, i seems to be not working!

 

-----------EDIT---------

I found this link:

ServiceNow: Wait for Condition Flow Designer - DEV Community 👩‍💻👨‍💻

and this comment in the wait for conditon Script.

Meloper_0-1675786004996.png

i updated my script with :

Meloper_1-1675786062393.png

 

 

i will not create a log after an update on the case, 

BUT after i updated the Case with that Short description,

tht wait for condition was true

 

so maybe, the script will run only one time! to create the return ecoded query.
And after that it only compares to the encoded query and will not run the script again

0 REPLIES 0