Question

Can we do feature upgrade in SharePoint Online, like we do in SharePoint on-premise.

Please suggest some articles.

Was it helpful?

Solution

I tried the same thing. But as we do not have any means to upgrade the feature in O365 still I wrote the UpgradeActions tags in the feature.xml anyway. But as expected it threw an exception.

Then it struck me that whenever you go to update the wsp in SharePoint Online, it asks you to deactivate and upload then activate again.

Deactivating the wsp causes removal of all your fields(created by wsp) and content types and when you activate it, it adds/deploys them again. So, I removed the UpgradeActions and added new fields to my content type as I generally would for the first deployment and voila! It not only updated my content type but also updated the existing list.

I don't know if that will help you.

OTHER TIPS

I am here considering that you are asking about the upgrading sandbox solution's features.

To update the solution in SharePoint Online, first we will need an updated WSP. It should have the relevant sections specified in the UpgradeActions Feature XML element.

Kindly check below article which describes the same.

Install and Update Sandbox Solutions with CSOM

Upgrading Sandbox Solutions in SharePoint

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top