Set workflow to page

Ethan Nguyen asked on July 10, 2021 22:17

Hi All, How to apply/set a workflow to a page/node via API I have referred to the document https://docs.xperience.io/api12sp/content-management/page-workflow-and-versioning however I have not found Thanks

Recent Answers


David te Kloese answered on July 11, 2021 00:53

What code have you tried, as the example on the link you provided should be sufficient.

0 votesVote for this answer Mark as a Correct answer

Ethan Nguyen answered on July 12, 2021 11:41

Hi David te Kloese, I have tried all codes at that link, however, it can not apply workflow for the current page. Please advice!. many thanks

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on July 12, 2021 12:19

What is happening? Nothing... are you sure you have the correct Workflow/node/doc/culture/site selected? Any error when aplying?

Does applying the workflow through the admin interface have the intended behavior? As there are workflows that just use versioning without additional steps..

0 votesVote for this answer Mark as a Correct answer

Ethan Nguyen answered on July 12, 2021 12:48

Hi @David te Kloese, I am writing code migration from old nodes to new nodes, and the issue happening I can not sync the workflow of the old note/page to the new node/page. Are you know any code to sync the workflow. If applying the workflow for any node through the admin interface is working well. Thank you

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.