6

I am using Sharepoint connect module to pull in documents from Sharepoint. Currently, I have written a scheduled task to publish the items at a specific time.

Is there a way to auto publish the files that are created once the connector has finished downloading all the files?

  • Is there a specific field you can determine in which the file is now ready for publish? You could write a Powershell script to query those items based on some specified criteria and call the publish API. – Michael West Dec 29 '17 at 2:54
  • specific field would be to check if the media blob exists. the issue i faced was, i wasn't able to figure out when the connector has actually finished downloading all the files. The items are created but behind the scene download is happening. i will take a look at powershell solution. – siddhipur Dec 29 '17 at 14:24
  • You could use this script to help you determine if the media item has a blob available. gist.github.com/michaellwest/edf8154f8fb4b8d2636390ba76707a48 – Michael West Dec 29 '17 at 14:49
1

According to documentation:sharepoint_connector_module_installation_and_configuration_guide.pdf

1.3 Publish media files changes made on a SharePoint server In order to incrementally publish changes in the media files updated on the SharePoint server, you should make the following changes in the /App_Config/Include/sharepoint.config file:

  1. Add the following attribute to the configuration element: xmlns:x=http://www.sitecore.net/xmlconfig/

  2. add the following code to the section:

1" type="Sitecore.Modules.SharePoint.Pipelines.LoadSharepointItems, Sitecore.Modules.SharePoint" />

If you use Smart or Full publishing, you don't need to make any configuration changes.

  • the correct config changes : <pipelines> <publish> <processor x:before="*[1]" type="Sitecore.Modules.SharePoint.Pipelines.LoadSharepointItems, Sitecore.Modules.SharePoint"/> </publish> </pipelines> – Andrei Akonnikau Jan 21 '19 at 10:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.