Skip to main content
Nintex Community Menu Bar

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

  • April 1, 2019
  • 3 replies
  • 35 views

Forum|alt.badge.img+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

Forum|alt.badge.img+11
  • Nintex Partner
  • April 2, 2019

Hi @kalpesh ,

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

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


Forum|alt.badge.img+2
  • Author
  • April 2, 2019

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


Forum|alt.badge.img+11
  • Nintex Partner
  • April 2, 2019

Glad to hear you resolved it yourself :smileyhappy: