Forum Discussion
Can PnP Provisioning preserve SharePoint List GUIDs across environments?
I am using PnP Framework 1.15.1 with the 2022/09 Provisioning Schema to provision SharePoint Online lists.
After applying the provisioning template, I noticed that all newly created lists have different SPList.Id (GUID) values compared to the source site.
My template contains standard pnp:ListInstance definitions, for example:
<pnp:ListInstance
Title="Event Types"
TemplateType="100"
Url="Lists/EventTypes"
TemplateFeatureID="00bfea71-de22-43b2-a848-c05709900100">
...
</pnp:ListInstance>
I checked the 2022/09 schema and I couldn't find any attribute to specify the list GUID.
I also noticed that the provisioning engine registers ListIdToken using createdList.Id, which seems to happen after the list has already been created.
My questions are:
Is it expected that PnP Provisioning always creates new SharePoint List GUIDs?
Is there any supported way to preserve the original SPList.Id during provisioning?
Was this ever supported in previous versions of the PnP Provisioning schema or framework?
Any official documentation or confirmation from the PnP team would be appreciated.