Get Orchestrator Folder job is currently running under?

Is there any way to get the folder the job is running under as a string? That is, if I start a job under a “Accounting” folder, it would return “Accounting”. I’ve checked the Orchestrator API reference, but I only see the option to either return all folders, or return a specific folder by key, but I don’t see a way to pull the key for the current job.

2 Likes

Hey @bzilch

What’s the real usecase being this please ?

As whenever you trigger a job the folder is obviously known and bot will be already inside the folder.

So just curious to know the purpose and understand better to see for any possibile solution.

Thanks
#nK

We have the same process that might be run under different folders. Each process would have a different set of parameters depending on which folder its under. While I could pass those parameters as arguments, I would rather simplify it to just set those based on folder. That would also make sure there’s no mismatch between the arguments everywhere and the folder it’s run under.

1 Like

Hey @bzilch

What I felt is you can have assets listed with different values in different folders as required so that automation will pick values based on which folder it runs.

Hope this helps.

Thanks
#nK

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