Buy Me a Coffee

Buy Me a Coffee!

Wednesday, January 25, 2017

PnP Core Provisioning: Part 2

Microsoft Patterns and Practices group has developed a deployment tool for SharePoint called PnP Core that allows you to provision structure, data, settings, security, and artifacts to a SharePoint site from an XML input file.  I pulled the captured template and removed some of the nodes.  Below are two fields pulled from the XML that show a Single line of text and a Multiple lines of text field definition:

            <Field Type="Text" 
                   RowOrdinal="0" />
            <Field Type="Note" 
                   RowOrdinal="0" />

If you look at the definitions above you can see that the Type of the SingleLineOfText is Text and the type of the MultipleLinesOfText is a Note.  The other attributes are pretty simple to understand.  The DisplayName is what shows in views, and the Name is the internal name.  The ID is the internal GUID that uniquely identifies the column.  It is important that the GUIDs are unique.  If you copy a column and forget to update the GUID and have duplicates, you will get very strange behavior.  You could destabilize your entire farm. The SourceID points to the list that contains the field.