Is it possible to have a job executing on the gallery be dynamically aware of its gallery AppId?
I have an application that requires me to log usage to a central repository and I need to know what workflow used my process. In designer I can use the [Engine.WorkflowDirectory] and [Engine.WorkflowFileName] variables to uniquely identify a workflow, however when that same workflow is saved to and run from gallery a unique staging folder is created each time it is run so every run appears to be a new unique workflow. If I were able to dynamically access the gallery AppID (or URL) then I could use that in place of the Directory and FileName.
I am hoping there is something like "__cloud:UserId" only maybe "__cloud:AppId" (I tested and unfortunately __cloud:AppId did not return anything)
I have considered embedding a gallery API call into my process that would identify the currently executing jobs and infer which from that returned list was applicable but that seems very heavy, and I imagine that many organizations either do not have the API's enabled, or would be unwilling to allow a generic user API key to be embedded within a shared macro.