Scheduled Workflow passing parameters

Hi Team. 

So i have a single Powershell script that has this line in it. 

$AzureLocation = $Task.DirObj.Parameters.Value("AzureLocation").Value

I am then using multiple scheduled tasks and passing the value for AzureLocation to it.

I have started to see the light on using Scheduled Workflows and much prefer the extra flexibility of doing that. What i am not sure on

1) What is the Work flow equivalent of using $AzureLocation = $Task.DirObj.Parameters.Value("AzureLocation").Value

Thanks in advance 

Top Replies

Parents
  • Hi  

    Within the SDK, you want to look at section on "Retrieving data from workflow context", and as a substitute for $Task.DirObj.Parameters.Value("AzureLocation").Value you're probably looking for something like $AzureLocation = $Workflow.Paramter("AzureLocation")

    However, this section of the SDK covers retrieving data from paramters, found objects, activity target, saved object properties and more.

    Hope this helps

    Stu

Reply
  • Hi  

    Within the SDK, you want to look at section on "Retrieving data from workflow context", and as a substitute for $Task.DirObj.Parameters.Value("AzureLocation").Value you're probably looking for something like $AzureLocation = $Workflow.Paramter("AzureLocation")

    However, this section of the SDK covers retrieving data from paramters, found objects, activity target, saved object properties and more.

    Hope this helps

    Stu

Children