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.

How to delay creation of record until the condition matches in the flow designer?

asrsharma07
Tera Contributor

Hi Developers, 

I am facing an issue to build the below usecase:

Usecase: Whenever a change_request is created with an employee number value, the flow should check the employee number in the sys_user table of the change_request record. If the user record is not present in the sys_user table with the employee number of the change_request record, the flow should wait for 2 hours. If the user is created with the same employee number within 2 hours, the flow should proceed. If the user record is not created before 2 hours, it should throw an error.

 

Please find the attached screenshot and suggest what needs to be done.

 

Flow.pngwait for condition.jpgError.jpg

 

Thanks

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@asrsharma07 

you can try to use Do Until in flow which checks and loops

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

How to do we add duration in Do Until loop?