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

Josh Pirozzi
Kilo Sage

Hey @Leander Burger,

Have you tried:

  1. Set initial Flow Trigger to Incident Record Updated and State is In Progress.
  2. Flow Step 1 - Look up Incident Record where SysID = the SysID of the Initial Trigger Record.
  3. Flow Steps 2 and forward - As long as the Flow Registers the Incident Record, then take specified actions.
    1. IE: Add Work Notes, Trigger Notification, etc....

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Leander Burger 

did you try to add only 1 condition for State and remove the Updated filter?

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Leander Burger
Tera Contributor

The goal is to have a requested item in the state resolved for a week without updates and then close it. To determine if this is the case I've created the step. It looks like it should be possible this way but it somehow fails.  An alternative could be to create a loop that checks every hour for an update and then closes the requested item after a week. This however will be limited by the max iterations.

I'm not sure what you are suggesting John. I think I can make something from Nishant8's suggestion but it will involve extra steps which I'm trying to prevent. Without the updated filter it doesn't create the error Ankur.