Sync document

Ethan Nguyen asked on April 23, 2021 06:12

I am writing code sync from document A to document B. I have a question How to sync all the properties under the other tabs from document A to document B? https://prnt.sc/11wpt59 is there any code sample?

Correct Answer

Juraj Ondrus answered on April 23, 2021 07:19

Then you need to follow the API and get the values from given properties and set them to the new page's properties. Or, use import toolkit and map the source and target fields.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on April 23, 2021 06:40

So, the sync actually means you are copying the data? If yes, why don't you simply copy A and name it B? Anyway, the data you are refering to are basically the page's object properties - coming from CMS_Tree and CMS_Document tables. So, just copy the values from respective property. See also the documentation on the other DB tables related to page.

0 votesVote for this answer Mark as a Correct answer

Ethan Nguyen answered on April 23, 2021 07:12

Thanks your Infomation Yes. copy data from A to B. A and B are different page types so we can not copy the manual. I have read the documentation it is too difficult to follow. Is there an easy way?

0 votesVote for this answer Mark as a Correct answer

Ethan Nguyen answered on April 23, 2021 07:24

Thanks for your information. let me try follow the API. for the Alternative URLs & Security & Personas: what have you know APIs to get/set?

0 votesVote for this answer Mark as a Correct answer

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