+1-888-365-2779
Try Now
More in this section

Forums / Deployment / SiteSync From CommandLine / PowerShell / API call?

SiteSync From CommandLine / PowerShell / API call?

10 posts, 0 answered
  1. Chris
    Chris avatar
    6 posts
    Registered:
    11 Nov 2013
    24 Mar 2014
    Link to this post

    Is there a way to kick off SiteSync programmatically? Instead of going into the http://domain.com/Sitefinity/Administration/Synchronization page?

     Thank you.

  2. readonlychild
    readonlychild avatar
    67 posts
    Registered:
    26 May 2011
    02 May 2014
    Link to this post

    bump, I'm in the need for this, if anybody has any information, it would be appreciated.

  3. readonlychild
    readonlychild avatar
    67 posts
    Registered:
    26 May 2011
    02 May 2014
    Link to this post

    I found this

     Sitefinity/services/sitesync/SiteSyncService.svc/help

    ...so I'll try it and report...

  4. Chris
    Chris avatar
    6 posts
    Registered:
    11 Nov 2013
    02 May 2014 in reply to readonlychild
    Link to this post

    This is supposedly in the 7.x version of Sitefinity (per support).

  5. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    07 May 2014
    Link to this post
    Hi,

    Public SiteSync API has not been fully developed and so for the time being we do not have any documentation on it. However there are some ways you can take advantage of the already available implementations. Please find the attached archive that consists of an excerpt with an example on how you can trigger syncing through API. Please note this is still work in progress and it might be changed in future. I would also suggest to test this on a safe environment.

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  6. readonlychild
    readonlychild avatar
    67 posts
    Registered:
    26 May 2011
    01 Aug 2014
    Link to this post

    Chris, did you ever accomplish this ?

    I got the same document that is posted here but that does not work.

  7. Chris
    Chris avatar
    6 posts
    Registered:
    11 Nov 2013
    04 Aug 2014
    Link to this post

    No, we gave up on this since there isn't anything fully baked.

  8. readonlychild
    readonlychild avatar
    67 posts
    Registered:
    26 May 2011
    29 Sep 2014
    Link to this post

    Anyone knows if this is doable in 7.2 ?

    it is not doable in 7.1, but I have my SyncHacker.cs class that I want to move off of.

    Basically I want to be able to kick a sync when certain user publishes any page (I have my SyncHacker class working, hooked up within the xaml workflow.

  9. Sean
    Sean avatar
    1 posts
    Registered:
    07 Oct 2014
    20 Jan 2015
    Link to this post
    I would love to have this feature as well. Anyone had any success?
  10. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    21 Nov 2016
    06 Apr 2015
    Link to this post
    Hello,

    To stop a synchornization you need to work with the SchedulingManager, get the synchronization task and delete it. To get a SiteSyncTask use the code below:

    var schMan = SchedulingManager.GetManager();
    var task = schMan.GetTaskData().Where(t => t.TaskName == "Telerik.Sitefinity.SiteSync.SiteSyncTask").SingleOrDefault();

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
10 posts, 0 answered