kalpesh
Design Dabbler

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

Jump to solution

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

0 Kudos
Reply
3 Replies
jpmhuls
Workflow Veteran

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

Jump to solution

Hi @kalpesh ,

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

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

0 Kudos
Reply
kalpesh
Design Dabbler

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

Jump to solution

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

View solution in original post

0 Kudos
Reply
jpmhuls
Workflow Veteran

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

Jump to solution

Glad to hear you resolved it yourself Smiley Happy

0 Kudos
Reply