I have a workflow that pulls data from a database, formats and saves it to a file, and then emails that file to a recipient list. Currently we have this running in our Company's gallery once a week.
I have a request to modify the body of the workflow to go to a different recipient list for different days of the week, which I've solved. However, I'd like to dynamically detect in the workflow if it's being run by a person manually in Designer or as an automatically scheduled run. (If it's run manually, I only want the results file to go to the owner of the workflow and not the recipient list(s).)
Is there a way to detect the run environment as a parameter within an IF - THEN - ELSE statement? It looks like the Engine.GuiInteraction constant might work but the documentation on the constant doesn't clarify what happens if the workflow is running in the Gallery.
Solved! Go to Solution.
@Scott_Snowman I can confirm that [Engine.GuiInteraction]="1" will return true on designer desktop and false in the gallery. You can put that inside an if then else.
Thanks a bunch, @patrick_digan !
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
5 |