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.

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.

8 REPLIES 8

GlideFather
Tera Patron

Hi @chaithra10,

 

in your flow, you can use this "Wait for condition" action:

GlideFather_0-1764240854142.png

 

Then add the condition or use flow variables and scripting to achieve what you need

 

_____
This reply is 100 % GlideFather and 0 % AI

OlaN
Tera Sage
Tera Sage

Hi,

You can create a Flow that triggers when a Record is created on a specific table with some specific conditions.

 

In this case I guess you're trying to use the "Wait for condition" action, which can only monitor existing records, not wait and trigger on a new record being created.

 

As a workaround, you could do a loop that waits for a specific time period, then do a lookup and see if the specific record has been created, and if so move on, otherwise continue looping and waiting.

chaithra10
Tera Contributor

how to do the loop condition? Record will be created some time later - not during when this RITM is closed

You can use the do-the-following-until flow logic.
Providing a simple example below (with the usage of a flow variable):

do-the-following-until.png