Flow to check if requested_for user exists in the system

ZODE
Tera Contributor

Hi Community,

I have a requirement where I need to check if the requested_for user exists in the system and if yes then create catalog task. If the user doesnt exist then ask for approval from manager. How do I configure this in flow?

1 ACCEPTED SOLUTION

@ZODE 

Thank you for marking my response as helpful.

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

Regards
Ankur

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

requested_for is reference field Out of the box on sc_request and it refers sys_user

then why to check if user exists or not

If it's string variable then what does it hold? user name or email

you can use Lookup Record Action and apply proper filter to sys_user table and search against the field

Then use IF action and check what's the result of Lookup Record whether it's Success or Failure

Regards
Ankur

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

@ZODE 

Thank you for marking my response as helpful.

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

Regards
Ankur

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