Home

SharePoint 2010 Workflow and CSOM on SharePoint Online

Pawel Bojkowski
New Contributor

Hey SharePoint peeps:
We have problem with SharePoint 2010 Workflow and CSOM on SharePoint Online instance.

Our goal is to provision Site/SiteCollection using CSOM/PnP, with Publishing Infrastructure feature enabled.
We are able to provision lists, set variations etc., however the problem is with “Publishing Approval” workflow.
I just can’t find the way to assign it’s the list.
Unfortunately it’s SP2010 workflow, so CSOM seems to be completely helpless with that.
As Publishing Infrastructure is enabled, we are unable to save the site as WSP template.
Saving list with assigned workflow works only across that single site (on others it creates right list with assigned CT, but without workflow).
We even tried to “fake” HTTP calls to Sharepoint, to emulate clicking on the form,
but in this case, as we have two steps to set workflow, it failed as well.

Is there any way to assign Publishing Approval workflow using CSOM? Thanks in advance.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies