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

Thank you for the approach.

We were also thinking in the same  .

But then we figured that Scheduled Job also doesn't seem to have 'Run As' option.

Got it confused with 'Scheduled Data Import'.

Thanks Deepen. It worked. 

Does that mean the trigger condition which we give in Flow Designer will be overridden by the Scheduled Job in every case ?

 

 

 

No i don't think it will override but both will work. And without Trigger it wont allow to activate the flow hence we gave something which will work for us.

Hi,

I personally feel using both Flow Designer + Schedule job to achieve this requirement would lead to more code maintenance.

Schedule job to trigger flow and then flow actually doing the task.

As suggested you can raise a enhancement request or explore on the feature from Paris release

Regards
Ankur

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

Yes. Agreeing to the point.