Active IQ Unified Manager Discussions

Variables for workflow Job ID and execution comment?

TIMHOIBERG
2,677 Views

As part of our self service offering we have a custom command that takes the info generated in the workflow (volume, aggr, etc) and posts it to our web services server to be placed into a HTML template and emailed to the requester. To make it less confusing when a user has more then one workflow scheduled I want to add in the Job ID and execution comment. I was wondering if there are variables that contain this information about the workflow that I would be able to reference in the workflow?

1 REPLY 1

shailaja
2,677 Views

Hi Tim,

Assuming you are using 2.0 version,

There is a Cmdlet that gives access to some of the execution time variables and you can use that in your custom command that is part of your workflow:

Get-WfaRestParameter("workflowName")

Get-WfaRestParameter("jobId")

Get-WfaRestParameter("userName")

Please take a look at the command code in the certified command "Sent email" to see its usage further.

Execution comment is currently not available in this.

Thanks,

Shailaja

Public