Access the output variables of an activity inside a notification activity in Orchestration workflow

sreevishnu
Tera Contributor

I have a powershell activity and the activity is having two outputs (result and errorMessage), i need to send a notification after the execution of the powershell activity with the result and errorMessage inside the body in the email notification . Currently, i am not able to get the result and errorMessage variable inside the notification.

Is there any way to access the output variable of an activity inside another activity ?

7 REPLIES 7

The purpose of Orchestration Activities (Activity Elements) is to create layers of isolation specifically from the scratchpad. If you need access to set scratchpad variables, use the Run Script (Activity Definition) in the Core Activities list.   Run Script can access the scratchpad.


Katie A
Mega Guru

Hello, Here is a blog post that might help. Instead of the scratchpad, you will need to create an output and access it with the ID number data.get(#).output. After you create the outputs in the activity, the ID number will appear in the Data tab of the workflow panel.



Mini-Lab: Orchestration - Calling a Script With a Custom Run PowerShell Activity - Part 2


napatil
Kilo Contributor