Redéployer la solution de sélection de la solution dans une fonctionnalité Activation

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/90199

  •  10-12-2019
  •  | 
  •  

Question

J'ai une liste dans un site SharePoint où je sauve les données.Cette liste a été créée sur un processus d'activation des fonctionnalités il y a des mois!

Maintenant, j'ai créé de nouvelles améliorations telles que: 2 nouvelles colonnes au code (dans le processus de création de liste dans ma méthode d'activation de la fonction).

Ma question vient ici: Puis-je redéployer ma solution et réactiver ma fonctionnalité sans perdre de données dans la liste?

Quelle est la meilleure façon de faire ça?

Était-ce utile?

La solution

For such cases, we usually have a Code Upgrader feature which adds new columns to the list, set default values and so on..

You need to grab the existing list and add the new columns, it should work fine.. And you just need to activate this Code Upgrader Feature

Autres conseils

Instead of having a completely new feature, as Arsalan proposes, you can use the Feature Upgrade framework (which is actually mentioned in a comment by tyshock above).

Basically, what you have to do is using the Feature Version attribute, and then implement code to handle the FeatureUpgrading event in a Feature Event Receiver. See best practices here

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top