05 January, 2016

Episerver connect for sharepoint

The "sharepoint connector" is now a days a scheduled job with a settings page. (in earlier versions of Episerver the sharepoint connector worked in a very different way)

What it does is essentially to copy files from the connected sharepoint instance to the Episerver blob storage.
This means that the copied files will be available in the content folder as if the editors uploaded them by them selves.
The scheduled job will compare the files and update or delete files if it finds changes.

How to install Episerver connect for sharepoint

The installation process is as easy as installing a nuget package.

Compile your project, start the site and go to admin mode.
You will now see a new scheduled job named "SharePoint Update"
And on the config-tab below "Tool settings" you will find "Connect For Sharepoint"
Because of a bug in the present version of Episerver Connect for Sharepoint you might not see the tool settings if you dont have set english as your perfered language. (You can change this in your personal settings. You will find it in the top right corner (click on your login name and you will find it)

How to configure Episerver connect for sharepoint

  • In Episervers admin mode, on the config tab, click "Connect For Sharepoint"
  • In "Site URL" add the url to your sharepoint site. If you use microsofts colud services for sharepoint it will look something like this "https://yourcompany.sharepoint.com/"
  • Use a username and password for an account that has privileges to read the information you want to sync to Episerver.
  • If you are using microsofts colud services for sharepoint  select  "Connectiontype - Online" otherwise if your sharepoint server is in your local network, select "Connectiontype - On-premises".
  • Hit "Test connection"
  • You should now se a list of lists that your username has access to.
  • Check those you would like to "sync" (or more correct want to copy to episerver on the set interval)
  • In "Select Folder" you select a folder from the Episerver media library that you want to sync the selected SharePoint information to
  • Hit Save
  • Now the first time copy will start. If it doesn't, hit the Refresh button at the bottom of the page.



Yippee, now you have configured Episerver connect for sharepoint!
You can check the media library in editmode to see that the files show up in the folder you selected.

Now it's time to check that the scheduled job named "SharePoint Update" is set to run on a suitable interval.
Go to Admin mode - Scheduled jobs - SharePoint Update and be sure to check the Active checkbox and adjust the interval for your needs.

That's it. Your now worth a cup of coffee :-)

No comments:

Post a Comment