Get-PnPWorkflowInstance isn't working on SP2013 On Premise
Hi,
I am using the latest version (3.14.1910.0) of PNP for SharePoint 2013.
Here's my simple script
Connect-PnPOnline -Url http://
Id Title GUID
2850 199937 2e491225-54cf-4ffe-8503-90287c4fb24e
Get-PnPWorkflowInstance -List $list -ListItem $item -Web $web
This is returning the bellow exception
Get-PnPWorkflowInstance : Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. "GetWorkflowInstanceService new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager() " At line:1 char:1
- Get-PnPWorkflowInstance -List $list -ListItem $item -Web $web
+ CategoryInfo : WriteError: (:) [Get-PnPWorkflowInstance], ServerException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Workflows.GetWorkflowInstance
I have referred to the following articles https://www.reddit.com/r/sharepoint/comments/a410l7/questions_regarding_workflows_and_also_pnp/ https://sharepoint.stackexchange.com/questions/256205/get-pnpworkflowinstance-object-returned
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
This is not working for SharePoint Online either. I am connecting to the site properly, can fetch the list properly, but when I run this it results in nothing returned. I have triple checked everything. Connection is correct, list name is correct, item ID is correct.
Get-PnPWorkflowInstance -List "TestList2" -ListItem 6
Also this is over a year old and still needs Triage??