Run as a specific user for a 'Daily' triggered flow in flow designer

Minso2
Kilo Expert

We are having a flow in Flow Designer which needs to be run 'Daily'. We gave the trigger condition as 'Daily'.

This flow is used to fetch data from a third party tool.

And we would want this to be 'Run As' a specific user which we have created in the user table.

But the only option I am finding is 'Run As' - User who initiates the session.

 

Like how we have an option in 'Scheduled Data Import' to select the specific user.

Is the same possible in Flow Designer ?

 

1 ACCEPTED SOLUTION

venkatachinthag
Giga Contributor

Hi,

 

In Flow designer if you choose the Trigger as Daily, Weekly, Monthly and activated,there will be a scheduled job created automatically in the back end with name starting 'Trigger:<sys_id of flow>'.

 

So you can simply create the flow from Flow designer as you want.

And then go to Scheduled jobs and update 'Run As' field.

 

 

Thank you

Venkat

 

 

View solution in original post

14 REPLIES 14

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

only 2 options are possible for flow designer currently.

I believe as of now it is not supported

Regards
Ankur

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

Sajilal
Mega Sage

Please raise a Idea/Suggestion to Servicenow.

Please Mark as ✅ Correct if this solves your issue and also mark ???? Helpful if it helps resolve your problem.

Thanks,
Saji

Deepen Shah
Kilo Guru

There is a workaround for it. you can try to invoke flow from scheduled job and you can set user in 'Run As' for scheduled job and keep 'User who initiate the session' in Run As for flow.

In Flow , set 'Run Once' for trigger so that it will not run again. For e.g. i ran my flow as 'Abel Tuter'

find_real_file.png

You can copy code snipped to invoke flow.

find_real_file.png

Please mark correct & helpful if that works for you.

Regards
Deepen shah
aavenir.com