Access the output variables of an activity inside a notification activity in Orchestration workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2016 12:20 AM
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 ?
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2017 10:27 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2017 01:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2017 01:06 AM
This Article can help you
ServiceNow KB: How to access the output returned by an Orchestration Activity (KB0635207)