Identify if a process got triggered by scheduler

Is there a way to determine technically if a process is getting executed by a scheduler or manually (by an agent/by using the start job)

1 Like

@manoj_kamedi

Welcome to forums

You can check from below

Hope this may help you

Thanks

Hi Srinivas,

Thanks for the prompt response.

But I’m expecting that, can it be achievable by using any activity ?

Ex:

By using that Activity there should be an output returning saying whether the source is Manual/Agent/Scheduler

I don’t know whether this makes sense or not, but just trying to explore !

@manoj_kamedi

You can use API call to achieve this

https://docs.uipath.com/orchestrator/reference/jobs-requests

Hope this may help you

Thanks

Thank you very much. I feel this has answered my question.

Do you mind sharing a sample .xaml file achieving this ? (If you’re free !)

@manoj_kamedi

You can also try with Get Jobs activity and use For Each activity to get the source that could be easy for you

Check below for your reference

Hope this may help you

Thanks

1 Like

Perfect, to match my requirements it needed few additional changes. But I can manage from here !

Many thanks Srinivas and marking it as a solution !

@manoj_kamedi

Happy Automation

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.