1

I have an SharePoint provider hosted app. In my developement eniorement I added some new Columns to a list. After a deploy I added a new list to the SharePoint App.

I consider that after I deploy the app from Visual Studio (hit F5) that the already existing lists are empty. This happens only if the app is modified (like adding a list or s.th.).

How can I prevent this? because when I add a new feature to my app. I think the customers won't be happy if their data is lost after an update.

1 Answer 1

1

You need to follow an upgrade process for the app.

For an update, you use the same product ID in the app manifest that you used for the original version. The version number in the app manifest should be greater than the version number of the original app or the most recent update.

See more at: http://msdn.microsoft.com/en-us/library/office/fp179904(v=office.15).aspx

http://blogs.msdn.com/b/officeapps/archive/2013/06/13/upgrading-your-app-for-sharepoint.aspx

3
  • Hi, i tried it with the same productid and a higher Version ist the manifest. But i got there also an empty list, and i am wondering why i Must increase the verion to prevent from whiping my listdata.
    – Sascha
    Apr 21, 2014 at 17:43
  • @Sascha, did you try using UpgradedEventEndpoint web service to preserve the data.social.msdn.microsoft.com/Forums/sharepoint/en-US/… Apr 22, 2014 at 1:14
  • @Sascha, I just included some part of the answer, you will need to follow the whole article Apr 22, 2014 at 4:18

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.