Open magonzalezm opened 1 year ago
I have the same problem. Unfortunately, it is not trivial. I tried copying the contents of the list via power automate. The problem is the same i.e. lookup indicates an ID that is automatically generated and this attribute is read only - consequently it cannot be changed. Please take a peek here: https://sharepoint.stackexchange.com/questions/288052/is-it-possible-to-update-default-id-column-of-a-list-in-sharepoint-online Currently I have not solved this problem.
Yes, I know that the ID cannot be set from pnp normal scripts but I expected that the provisioning template would do it, or should do it. Compare this to the Sharepoint Migration Tool, the SMT respects the IDs we are migrating. I suppose they have conceived the provisioning template as a tool to display structures, but not data, because if it was so, they should have respected the IDs, for these cases.
I have use Get-PnPSiteTemplate to get the schema of a site.
Then I've used Add-PnPDataRowsToSiteTemplate for two lists, let's called them Property and PropertyType.
When exported, I have for propertytype: