4

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

Please suggest some articles.

9
  • Do you want to upgrade sandbox solution feature in SharePoint Online?
    – Hardik
    Jun 29, 2016 at 9:53
  • Yes, I want to upgrade Sandbox Solution feature. Jun 29, 2016 at 9:58
  • Kindly check my answer below. :)
    – Hardik
    Jun 29, 2016 at 9:59
  • Did you get it? Kindly let me know if needs more help.
    – Hardik
    Jun 29, 2016 at 10:05
  • I am working on that,will keep you posted. Jun 29, 2016 at 10:20

2 Answers 2

1

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.

2
2

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

3
  • Hello Hardik, I had a different experience with upgrading feature. As I am new to SharePoint, please check my answer below and let me know if this is in fact the "feature" provided by SharePoint Online.
    – Aks
    Jun 29, 2016 at 10:18
  • Please check in this link for step by step instructions to upgrade the solution..cann0nf0dder.wordpress.com/2014/08/21/…
    – Hardik
    Jun 29, 2016 at 10:27
  • Did you guys get it working for you?
    – Hardik
    Jun 30, 2016 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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