Pass PowerShell Variables from one JAMS Job to Another

Follow

When submitting a JAMS Job from a PowerShell script, users can pass any PowerShell Variable to the JAMS Job being submitted, as long as the name of the JAMS Parameter on the Job matches the name of a Variable in the PowerShell Script.

NOTE: PowerShell Variables may begin with a dollar sign, e.g. "$VariableName". On the JAMS Job, the "$" is not needed, so the JAMS Parameter would be "VariableName"

To pass variables, include the -usevariables option in the Submit-JAMSEntry line, as seen below. 

$ParameterA = 10
$ParameterB = "StringValue"
Submit-JAMSEntry -Name "JobName" -Server JAMSServerName -UseVariables

 

KB_Article_Update_M_Halski_JobName.png

Have more questions? Submit a request

Comments