How can I pass filter parameter to site workflow while executing the work flow using PowerShell


Badge +2

Hi,
I have site workflow which retrieve the list items based on filter criteria (WaveNo) and I am calling this site workflow using PowerShell (Refer attached file).
I want to pass filter value as an argument in PowerShell script, How can I achieve this functionality. I have tried passed association data in PowerShell but filter is not working.
Can you please help me on this issue.
Thanks,
Kalpesh


3 replies

Userlevel 2
Badge +11

Hi @kalpesh ,

Check Lucas's feedback on the following post from Vadim Tabakman:

http://vadimtabakman.com/nintex-workflow-start-workflow-with-powershell.aspx

Badge +2

Thanks @jpmhuls for the update.

In my case, I have a site workflow which retrieve all list items and I need to filter out in query list action. This filter parameter should be pass via PowerShell script.

But later on I found a mistake in my Nintex workflow. I have not declared the variable (waveno) in Nintex workflow. Once i have declared the variable, i can pass the data through "associationData" in PowerShell script and my PowerShell script is working fine now.

Example:
$associationData = "<Data><waveno>3</waveno></Data>"

 

Once again, thanks for support.

 

Thanks,

Kalpesh

Userlevel 2
Badge +11

Glad to hear you resolved it yourself :smileyhappy:

Reply