문제

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

Please suggest some articles.

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top