Automatic SYNCHRONIZATION for Data and and Objects

Manmath Kulkarni asked on May 2, 2017 12:29

Hi,

There is already "Content Sync" task present in "Scheduled tasks" in Kentico. I am looking for solution which can automate synchronization of Data ans Objects.

Data: Custom tables and and custom table data Objects: Page types, Page templates and/or scopes defined on staging.

I have checked following URl but it does not give clear information.

https://docs.kentico.com/k10/custom-development/miscellaneous-custom-development-tasks/scheduling-custom-tasks

Please let me know if there is sample code for this.

Thanks in advance, Manmath.

Recent Answers


Matt Swain answered on May 2, 2017 15:04

Hi Manmath,

What situation are you trying to get to? Are we talking about synchronising to a 3rd party system or synchronising with another instance of your Kentico website (e.g. Local -> Staging -> Live).

If a 3rd party system take a look at the Integration Bus:

https://docs.kentico.com/k10/integrating-3rd-party-systems/using-the-integration-bus

You can subscribe to objects being created/updated/deleted etc and then write custom code to synch this to a 3rd party.

If another Kentico site take a look at the Staging module in Kentico.

https://docs.kentico.com/k10/deploying-websites/content-staging

If you need any help let me know,

Thanks,

Matt

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on May 2, 2017 16:32

Hi Matt,

Thanks for your reply.

I need to do SYN from Staging -> Live. I am able to SYN contents with https://docs.kentico.com/k10/deploying-websites/content-staging/automatic-content-synchronization

But my question is how to SYNC automatically custom tables and page types. Do I need to add custom scheduled task for that? If yes how to do it.

Best regards, Manmath.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 2, 2017 21:04

There is no scheduled task which automatically syncs objects and data. There is not one because it isn't something people typically want to do automatically. I'd suggest doing these manually OR writing your own custom scheduled task to process them. Be very careful though you could be automatically publishing an object that is not complete yet and cause breaking changes on your production site.

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on May 23, 2017 10:38

Hi Brenden,

Thank for your reply. I want to write my own custom class to SYNC page types, page template and custom table. I want to o this not for production site but for test and development servers

I have checked the link thoroughly for adding custom Task to App_Code but it does not give any info other than how to add custom class. Can you please guide me through this. Which classes, API's can be used to check if new page type/page template/customTable is created/updated/deleted.

Best regards, Manmath

0 votesVote for this answer Mark as a Correct answer

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