Apr 25, 2021

Something to remember when executing On Demand workflows

We sometimes convert existing workflows to On Demand to get something done. This is a normal practice and nothing wrong with it. Yet there is one thing to know before doing this.

Consider your workflow is set to execute under the context of Owner of the Workflow. Idea behind is user who is doing the operation may not have permissions to do what workflows is doing. So workflow is set to have much higher/ elevated user to do that. 

Catch here is, when workflow is running as On Demand, it will always run within the context of the user who is performing the operation irrelevant of the setting. You will see some sessions are listed under the user who is running the workflow On Demand as below.