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

incrypto
Tera Contributor

I like this solution a lot. I would maybe do Look Up Records (instead of Record) and if the Count is 0 (zero), increase the loop counter, and then instead of making the Until the Loop Counter is 5 or whatever, do Until record look up Count is 1. Then continue. 

You could have an IF branch after increasing the Loop Counter to a certain threshold, take an action like email a Group or close a record.

Hi,

Thanks for the feedback.
The decision to use a Look up record instead of a Lookup records is based on the question which was aimed at finding a very specific record, and not a count of records.

But yeah, both could work.

Regarding the loop I wouldn't want to risk a neverending loop if the record is never created.

I rather build in some other fail safe exit-condition, but again that's just my way of thinking. It's up to the person implementing to decide on the exit-condition, as I just gave a simple example.

chaithra10
Tera Contributor

I am unable to select the VMI table in this wait condition:

chaithra10_0-1764241231499.png

 

 

@chaithra10 what's VMI table? 😛

_____
100 % GlideFather experience and 0 % generative AI

Ankur Bawiskar
Tera Patron

@chaithra10 

Why not handle the further logic in the flow which gets triggered on the Other record insertion itself?

Another way

Try to use 'Do Until' and query for the record with a wait timer in it, and if the query fetches the record, the until stops. Ensure your Do Until doesn't go in infinite loop

💡 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