Flow Designer - Wait for condition on updated field

Leander Burger
Tera Contributor

I've added a Wait for Condition action in a flow with conditions on the state and updated fields. The condition on the updated field doesn't seem to work because it generates an error and the flow stays in the wait state although the conditions are already met. I'm able to reproduce this issue on a Washington and a Xanadu instance. Is anybody familiar with using the updated field in Wait for Condition or able to provide an alternative? 

 

Flow:Screenshot 2025-02-12 at 12.55.04.png

Execution:
Screenshot 2025-02-12 at 12.55.15.png

The record watcher failed to register and I don't know why.

P.S. Workflow Studio is up to date.

1 ACCEPTED SOLUTION

Nishant8
Giga Sage

Hello @Leander Burger , Can you try to make use of 'Wait for duration' available under Flow Logic? surely, you can make the adjustment accordingly. you can refer below SS for reference.

Nishant8_0-1739366472692.png

 

Regarding the record watcher fail error, you can add another Action after 'Wait For' maybe a simple one like 'log' and then verify

 

Regards,

Nishant

View solution in original post

6 REPLIES 6

Hi @Leander Burger,

I guess there was confusion because the screenshot provided referenced the Incident Table for your example. As far as I am aware, once a Request Item is complete, it's complete which then completes the Request (if its the only Request Item associated).

 

If you are actually in fact looking to perform this action on an Incident, then there is an OOB Business Rule in place that automatically waits XX days before changing the Incident State to Closed. 

 

https://YOURINSTANCENAME.service-now.com/now/nav/ui/classic/params/target/sys_script.do%3Fsys_id%3Dd...

Leander Burger
Tera Contributor

Thanks all for the suggestions. This is what I got from support:

This issue is caused by PRB1545899 


Per PRB1545899, the Record Watcher for Wait for Condition cannot handle conditions using relative dates (ex: javascript: gs.beginningOfLast15Minutes())

PRB1545899 is set to Won't fix