Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to trigger approval through single line text variable through flow

Puneet4418
Tera Contributor

Hi,

I have a single line text "user email". I want to trigger an approval to the user's manager mentioned in the "user email" field through flow.

how can I achieve this?

 

Thanks in advance.

1 ACCEPTED SOLUTION

vermaamit16
Kilo Patron

Hi @Puneet4418 

 

You can make use of Get Catalog Variables action to get the value of user email variable. Post that, make use of Lookup Record action on sys_user table with the user email ID that you got in the first step to get the user manager sys_id. You can then make use of Ask for Approval action and map the manager data pill as an Approver.

 

Refer below screenshots -

 

AmitVerma_0-1732020020036.png

 

AmitVerma_1-1732020043131.png

 

AmitVerma_2-1732020065408.png

 

AmitVerma_3-1732020082147.png

 

Output -

AmitVerma_4-1732020117571.png

 

AmitVerma_5-1732020155739.png

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

View solution in original post

2 REPLIES 2

vermaamit16
Kilo Patron

Hi @Puneet4418 

 

You can make use of Get Catalog Variables action to get the value of user email variable. Post that, make use of Lookup Record action on sys_user table with the user email ID that you got in the first step to get the user manager sys_id. You can then make use of Ask for Approval action and map the manager data pill as an Approver.

 

Refer below screenshots -

 

AmitVerma_0-1732020020036.png

 

AmitVerma_1-1732020043131.png

 

AmitVerma_2-1732020065408.png

 

AmitVerma_3-1732020082147.png

 

Output -

AmitVerma_4-1732020117571.png

 

AmitVerma_5-1732020155739.png

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

PPPanchal
Mega Sage

Hello @Puneet4418 ,

You can achieve this by following steps:

1) Get catalog variable 'user email' by using 'Get Catalog Variable' action.

Unique45_0-1732019911851.png

 

2) Add lookup Record action, select table sys_user and add condition - email is catalog Item.user_email

Unique45_1-1732020019342.png

 

3)Add Ask for Approval action

Unique45_2-1732020140856.png

 

 

 

Please mark correct/helpful if this helps you!
Thanks,
Pratiksha
ServiceNow Rising Start 2025