Tuesday, May 7, 2013

Sharepoint list definition check if already exists

Here is the article on how to check if a list is already exists or not before you create any list using list definition from sharepoint If you create list definition from VS and deploy it, For every deploy it will delete the list if already exists.

To aviod that we need to modify the SharePointProjectItem.SPDataItem file in VS

Just set "DeploymentConflictResolutionBehavior" to "None" will stop deleting the list eventhough if exists

Here is the sample XML code..


Thank you !!

1 comment:

  1. SharePoint Online delivers the powerful features of SharePoint without the associated overhead of managing the infrastructure on your own. Flexible management options ensure that you still retain the control you need to meet the compliance requirements of your organization. You can purchase SharePoint in the cloud as a standalone offering or as part of an Office 365 suite where you could also get access to Exchange, Lync, the Office clients and web apps.
    Sharepoint developer
    Sharepoint Site
    Sharepoint Services
    Sharepoint Designer
    Sharepoint Consulting
    Sharepoint Server