Products: Nintex Workflow 2013, Nintex Workflow 2010
Sometimes it can be helpful to replicate the behavior of the Nintex Workflow Query List action outside of the Nintex Workflow environment. After UI is stripped away, Nintex Workflow executes a CAML query using the SharePoint API to return the values specified in the Query List action.
Using this PowerShell script you can replicate this behavior to help narrow down issues with your query (such as List View Threshold violations, Permissions issues, etc.).
To replicate the Query List action in PowerShell do the following:
- Open the Query List action in your workflow.
- Change the Editor mode to be CAML editor.
- Copy the CAML/XML between the <Query> tags.
- Paste the CAML/XML into the script replacing the example.
Note: The <Query> tags must be removed for the query to function correctly.
Run the below (attached as well as a *.txt file for your convenience) PowerShell script (PowerShell ISE works well) from a SharePoint Server:
PowerShell Script |
---|
|
To use the script do the following:
- Replace http://contoso.com with the URL of the site you wish to execute the script against.
- Replace the Guid in the last line of the script with the Guid found in the CAML query extracted from Nintex.