Flow Designer If Condition - Cannot Validate User Record

TFischer
Tera Expert

Hello,

 

I am trying to validate that a user record is not "guest" in this flow. For context I'm using the inbound email action to create tickets targeted at a specific email address. I need to exclude tickets being created for external emails (guest users) for this flow specifically.

 

The solution I came up with is to look for the user record associated with the inbound email. If it is a guest user, we don't need to create the ticket. Inbound external emails are used elsewhere on the platform so I cannot filter the domains explicitly for the whole instance.

 

When building out the flow I'm running into an issue with not being able to validate the user record reference in an if condition. In the below screenshot I would expect to be able to select the user record from Step 2 and validate it in the if condition. However, the value is greyed out. Am I missing something here?

 

TFischer_0-1729270244755.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@TFischer 

use the Status output from Lookup record which tells you Success or Error means record found and not found respectively

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

2 REPLIES 2

SumanKumarM
Tera Contributor

Hello TFisher,

I have created sample flow in my PDI in Global and Scoped applications. I don't see any issue in selecting user record. I hope you selected sys_user in your Look Up Record action. Also, please verify your roles.

 

Please mark helpful, if it resolve your issue.

 

BR,

Suman.

Ankur Bawiskar
Tera Patron
Tera Patron

@TFischer 

use the Status output from Lookup record which tells you Success or Error means record found and not found respectively

If my response helped please mark it correct and close the thread so that it benefits future readers.

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