Hi Team,
I am trying to run the workflow using PowerShell and capture the workflow job id output to the text file, that text file will be read by our BigFix tool.
Below is the scripts and the error i am getting
PS C:\Users\awilliamtell> $jobid = Start-CVWorkflow -name baas_workflow -Force | select jobid
INFO: Start-CVWorkflow: enter inputs for workflow [baas_workflow]
PS C:\Users\awilliamtell> qlist job -cs BTEEGVPCSTVW001.forsythehosting.com -j $jobid -waitForJobComplete -waitTimeoutSe
cs 600 | out-file -filepath c:\test\test.txt -append
job: Error 0x303: Invalid job Id @{jobId=18850}
**************************************************************************************************
I tried to print the $jobid and if its giving output as Can't find file @{jobId=18866; processId=18866}
PS C:\Windows\system32> $jobid = Start-CVWorkflow -name baas_workflow -Force
INFO: Start-CVWorkflow: enter inputs for workflow [baas_workflow]
PS C:\Windows\system32> print ($jobid)
Can't find file @{jobId=18866; processId=18866}
Any help will be great!