check if lookup record returned a value in flow designer

alexrozov
Tera Expert

Hi,

 

I'm trying to create a flow in designer and one of the first things I need to do is check if a record exists.

I'm able to do a record lookup action to look the record up based on my criteria.

But Once the action completes I can't figure out how to do and if and ask "was a record found or not" ?

 

I'm sure there's a simple way of doing it and I'm missing something and would love any guidance

 

Thanks

alex 

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee

Hello Alex,

You can check for the output "count" (i.e output  variable from lookup record action) to check if the matching record is found or not. the count is 0 if no record is found.

 

- Pradeep Sharma

View solution in original post

8 REPLIES 8

Pradeep Sharma
ServiceNow Employee

Hello Alex,

You can check for the output "count" (i.e output  variable from lookup record action) to check if the matching record is found or not. the count is 0 if no record is found.

 

- Pradeep Sharma

This is assuming you are using look up records action

I knew it would be simple as soon as I know where to look for it

 

BIG Thanks

 

You are very welcome.