Flow designer flow - how to wait until a specific record is created in a specific table

chaithra10
Tera Contributor

Flow designer flow - how to wait until a specific record is created in a specific table:

I am working on building a catalog flow- where I need to update VMI records using Obj ID. This record will be created via vcenter discovery . Catalog flow should look for the VMI based on teh Obj ID entered in the RITM and once found it should update the VMI with group and owner info.

If I give fixed wait till - like 24-48 hours - even if there is a matching record - flow will still wait. I want to exit when the match found.

12 REPLIES 12

Ankur Bawiskar
Tera Patron

@chaithra10 

My thoughts

  • Add a "Do the following until" block.
  • Inside, use "Look Up Records" on the target table with your condition i.e. Obj ID == Value from RITM
  • Add a "Wait for a Duration" action (e.g., 5 minutes) to avoid rapid polling.
  • The loop exits automatically when the record is found.

Do remember to use a counter variable to prevent infinite loops

Do the following until flow logic 

Count Do-Until loop in Flow designer 

Exit Loop flow logic 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@chaithra10 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

SohamTipnis
Kilo Sage

Hi @chaithra10,

 

You can use the ' Wait for the Condition action in the flow design; refer to the below article:

 

https://www.servicenow.com/docs/r/build-workflows/workflow-studio/wait-for-condition-flow-designer.h...

 

If you find my answer useful, please mark it as Helpful and Correct ‌😊


Regards,
Soham Tipnis
ServiceNow Developer ||  Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10