Issue with powershell script in workflow.
I have a script I would like run when a workitem is changed. I am able to trigger the work flow correctly, and I can get the script to run by running an instance:
<AssemblyName>Cireson.Powershell.Activity.Workflow</AssemblyName> <WorkflowTypeName>Cireson.Powershell.Activity.Workflow.RunPowershellScript</WorkflowTypeName> <WorkflowParameters> </WorkflowArrayParameter> <WorkflowArrayParameter Name="InstanceId" Type="guid"> <Item>284ce973-3422-7e7f-4bf0-b558c187190f</Item> </WorkflowArrayParameter> </WorkflowParameters>
However this just runs that instance and doesn't change parameters based on the workitem. I tried to replace "InstanceId" with just "Id" to no avail. Is there a way that I can run the actual script and not just a certain instance of it?