DEV Community

Thom
Thom

Posted on

ServiceNow: Wait for Condition Flow Designer

The 'Wait for Condition' action in the ServiceNow FlowDesigner is run once and returns an EncodedQuery. Every time the record is updated, the record gets evaluated with the EncodedQuery and if it matches, the flow will continue.

That in mind, it is possible to write your own EncodedQuery in the inline script editor of the condition builder.

For example you can check if an 'on hold due date' was changed like:


return 'u_on_hold_due_date!=' + fd_data_trigger.current.u_on_hold_due_date.getValue();

Enter fullscreen mode Exit fullscreen mode

Top comments (0)