I need to know the WF ID associated with a List, I have gone through this link but it didn't help me out. Please suggest
3 Answers
If you go to List settings > Workflow Settings > you can open the workflow and see the SubscriptionID as part of the url (with {} encoded as %7B and %7D at each end)
-
Are you sure Subscription ID and Workflow ID both are the same thing? Feb 28, 2020 at 14:43
You can get the details easily by using the PnP PowerShell Library:
$list = Get-PnPList -Identity "List Name" -Includes WorkflowAssociations
Write-Host $list.WorkflowAssociations.Id
-
-
Did you get anything on $list.WorkflowAssociations at all? (or $list for that matter...) Mar 2, 2020 at 7:39
-
i got only List-ID, $list.WorkflowAssociations showing 0 count Mar 2, 2020 at 11:56
How to retrieve workflow id by using jsom in SharePoint online for your reference:
https://www.enjoysharepoint.com/how-to-retrieve-workflow-id-by-using-jsom-in-sharepoint-online/