Using a very basic script/flow to show the differences between these two runtime versions. The issue being that when the flow creates the job for my 7.2 script it doesn’t retain the named parameter provided by the flow. When it creates the job for my 5.1 script it keeps the named parameters correctly. I have a feeling it has something to do with Runbook itself. The flow is providing the same request, even the input for 7.2 looks correct but during execution (output) they become ‘wonky’.
I am using the same script for both runbooks, and the same automation to launch.
Flow Create 5.1 job
Flow Create 7.2 job
Runbooks
param (
[string]$EyeColor,
[string]$Birthday,
[string]$LastName,
[string]$EmailAddress,
[string]$MobilePhoneNumber,
[string]$FirstName
)
$printTHIS = "First Name = [ "+$FirstName+" ]";write-output $printTHIS
$printTHIS = "Last Name = [ "+$LastName+" ]";write-output $printTHIS
$printTHIS = "Email Address = [ "+$EmailAddress+" ]";write-output $printTHIS
$printTHIS = "Mobile Phone Number = [ "+$MobilePhoneNumber+" ]";write-output $printTHIS
$printTHIS = "Birthday = [ "+$Birthday+" ]";write-output $printTHIS
$printTHIS = "EyeColor = [ "+$EyeColor+" ]";write-output $printTHIS
My expectation is that both runtimes would accept the named parameter provided as-is so that I can correctly work with the script. Alas, that isn’t the case…
ShaunATac is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1