Skip to main content

Hi!

 

I have a workflow created on an on-prem sharepoint list and would like to start the workflow using powershell. Is the approach different than when I use to start them in SharePoint Designer?

Thanks

Hi @jpacheco 

 

You can use the Nintex Workflow Web Service Methods at
http://<site>/_vti_bin/NintexWorkflow/Workflow.asmx
to start workflow.

You can use PowerShell Invoke-WebRequest or Invoke-RestMethod commands.

Invoke-RestMethod is perfect for quick APIs that have no special response information such as Headers or Status Codes, whereas Invoke-WebRequest gives you full access to the Response object and all the details it provides.

 

Read more here

 

 

 


@Garrett ,

Hello! Would you happen to have any steps on even attempting this? I’m not sure on where to apply this.. I do apologize, I am still new to this and thanks for your understanding.

Thanks


Hi @jpacheco 

  1. I’m sorry as I don’t work with SharePoint for Nintex environment. 
    I am using Nintex O365 and Nintex Automation Cloud.
  2. Which part are you stuck with? Using PowerShell or using the Nintex API?
  3. For Web API - you just need to go to your Web API URL
    http://<site>/_vti_bin/NintexWorkflow/Workflow.asmx
    There are 3 possible command to start workflow
    If you click the links, it should take you to a Nintex Help Manual which explains the API in detailed.
    https://help.nintex.com/en-US/sdks/SDK2013/Reference/SOAP/NW_REF_SOAP_StartWorkflow.htm

Hi @jpacheco 
Have you managed to resolve your question? 


@MillaZ, no… 


  1. Which part are you stuck with? Using PowerShell or using the Nintex API?

@MillaZ ,

Though I’m grateful for the responses I did receive, I’m just not familiar with using PS with Nintex… I mean I’m a beginner with PS, but I've tried looking up videos for a step by step approach but no luck. 🤷🏻‍♀️

 

Thanks


Hi @jpacheco 
I have found the following links that could help:

Nintex Forms PowerShell Overview

@Nintex_Sam Do you have any content or videos that could help here? 


Hi @jpacheco 

The link which MillaZ provide is using PowerShell just to add a new item to your List.
This is exactly the same as using Nintex Forms to create a new item.
Or using SP OOTB form to create the new item.

Once a new item has been created, then it waits for Nintex Workflow to trigger,

 

Windows 10 has Windows PowerShell v5.1 installed by default.
The latest version of PowerShell Core is v7.3.x 
The default PowerShell cannot connect with SharePoint.
You would need to install add-ons modules to PowerShell in order to connect with SharePoint.

 

Try to Google “sharepoint add new list item with powershell”. That should list some articles to get you started.

 

Lastly,

Incorrect usage of PowerShell could easily delete SharePoint list and data 


Hi @jpacheco 

Did Garrett’s answer help you out?


Reply