- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 05:58 PM
Hi,
I have created a few PowerShell activities using the Activity Designer and they are working well. I have an output configured to send executionResult.errorMessages to a variable called activityOutput.errorMessages using direct parsing. In my workflow that uses this activity, I am able to drag my variable from the Data tab into a Log Message activity. This works as expected - the PowerShell error is stated in the Log.
My issue is with using the ${data.get(21).errorMessages} variable anywhere else. It doesn't seem to work in the same way as scratchpad variables. I want any PowerShell errors to be saved to a task description or work note so that the Resolver will know what went wrong (e.g. they will see that the user does not exist in Active Directory).
Are there any other activities that accept databus outputs? I've tried Run Script, Set Values, Catalog Task, etc.
I'm using Fuji Patch 10.
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 07:14 PM
Hah, I figured this out.
I need to use data.get(21).errorMessages in my script field, not ${data.get(21).errorMessages}. It works fine now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 07:14 PM
Hah, I figured this out.
I need to use data.get(21).errorMessages in my script field, not ${data.get(21).errorMessages}. It works fine now!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2016 04:39 AM
Hi ,
I have tried to use data.get(21).errorMessages in my workflow catalog for putting error message in description but no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 07:30 AM
Cool Cool, your index likely is different number. If you open the workflow up in the workflow editor, to the right side of the screen you should see a data tab. You can expand it and you will see the different options. Find the one you are looking for and take note of the number on it. Additionally, you can expand it to see all of the variables that are in it, so you might have something different than errorMessages.
It is also worth noting that if you remove the activity from the canvas, then add it back, it likely (actually it should) have a different number.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2018 12:55 PM
Hi Dale,
Hope you can help with one doubt here.
What the numbers mean between the parenthesis?
data.get(21)
Thanks,