applying workflow to page

Ethan Nguyen asked on July 14, 2021 04:51

Hi all, How to applying/adding a workflow to a page via code-behind. Thank you

Recent Answers


Sunil Sharma answered on July 14, 2021 07:45 (last edited on July 14, 2021 07:50)

0 votesVote for this answer Mark as a Correct answer

Sunil Sharma answered on July 14, 2021 07:51 (last edited on July 14, 2021 08:52)

This may be useful for you - Link

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 14, 2021 08:44

Well, you need to create a workflow or update existing workflow object and add scope which will cover given page. Why would you want to do it in a code? What is the use case?

0 votesVote for this answer Mark as a Correct answer

Ethan Nguyen answered on July 15, 2021 11:28

Thank you @Sunil Sharma Hi @Juraj Ondrus That's require from my client. I am writing code sync from the old node/page to the new node/page and need to sync all properties https://prnt.sc/1bdxqp2 How to sync all properties. Please advice! Thank you

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 15, 2021 11:49

that does not make much sense - why are you "synchronizing"? What does it mean? Is it within the same Kentico version and you want to move to another server? If yes, you can use backup and restore or export/import. If you want to migrate the data between Kentico versions, then you could use the import toolkit.
Or, why don't you create the same workflow (again, you can use export/import) on the target and then just "sync" the page? Just take the page (node) object together with the version history and sync it to the target.
But this sounds to me like a bit overhead - I would recommend considering using the consulting services and check this with our solution architect. I believe there is much better way how to achieve your need although I do not know all the details but I would say that you might spend more time on doing it like this rather than getting the best practice on a 30minutes session...

0 votesVote for this answer Mark as a Correct answer

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