sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Get SP2010 based workflows in SPO

Open ashuetawah opened this issue 7 years ago • 5 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

I am trying to reach all workflows listed in SharePoint Online. There can be Nintex workflows, SPD 2013 and 2010 workflows. When I use WorkflowServiceManager(clientContext,Web).GetDeploymentService().EnumerateDefinition(false) never give me the list of SP 2010 based workflows. But when I do a list.workflowassociations, I only get SP 2010 SPD workflows.

Observed Behavior

I am not able to get SP 2010 based workflows by using the Deployment service of workflow manager.

ashuetawah avatar May 20 '19 12:05 ashuetawah

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar May 20 '19 12:05 msft-github-bot

That’s because SP2010 workflows are not part of the WM platform, rather they are part of the Workflow Foundation platform. Workflow Manager wasn’t adopted by SharePoint until after SP2010.

andrewconnell avatar May 20 '19 16:05 andrewconnell

Thanks AC for replying. I should have formatted it differently. I could get all SP2013 based workflows existence by using WFM API as mentioned. What's straight option (without iterating list.workflowassociation) to list all SP2010 workflows in a web?

ashuetawah avatar May 21 '19 12:05 ashuetawah

@ashuetawah said:

What's straight option (without iterating list.workflowassociation) to list all SP2010 workflows in a web?

You can't... that's the only option.

andrewconnell avatar May 25 '19 09:05 andrewconnell

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 24 '20 12:01 msft-github-bot