Forum Discussion
Copy Column name and setting from one SharePoint List to another SharePoint List
Hi Jbrines1969 , you can create a script in CLI for M365, PowerShell, or a flow in Power Automate to do so.
As you can see, in most cases, an XML schema of the source field is required.
CLI for M365:
https://pnp.github.io/cli-microsoft365/cmd/spo/field/field-add/ command with --xml parameter
PnP PowerShell :
https://pnp.github.io/powershell/cmdlets/Add-PnPFieldFromXml.html to use XML
or
https://pnp.github.io/powershell/cmdlets/Add-PnPField.html#example-6 with Formula parameter
SharePoint HTTP Request REST API in PowerAutomate: with SchemaXMl parameter
- Jbrines1969Jan 21, 2025Brass Contributor
Hi michalkornet sorry this is the third time on pasting this reply.
How do I get an XML schema of the source field is required.
J
- Jbrines1969Jan 20, 2025Brass Contributor
Hi michalkornet how can I get a an XML schema of the source field
- Jbrines1969Jan 20, 2025Brass Contributor
Hi michalkornet what can I use to get "an XML schema of the source field is required". Sorry new to all of this but keen to learn.
- Jbrines1969Jan 20, 2025Brass Contributor
Hi michalkornet I will give this a go and get back to you, many thanks.
- michalkornetJan 21, 2025Iron Contributor
Hi Jbrines1969, you can use for example CLI again check this command and SchemaXML in the result https://pnp.github.io/cli-microsoft365/cmd/spo/field/field-get/
- Jbrines1969Jan 22, 2025Brass Contributor
Hi michalkornet does this look right as I am getting an error.
Error - Missing required query string: @a1.
clientRequestId: cb54f27a-b004-4ab0-b086-c0a25730c103
serviceRequestId: f6037aa1-7095-b000-1646-476ebe9ca29b
- Sigi7Jan 20, 2025Brass Contributor
Hi, why you are not using tenant wide content types?
Changes have to be made in a central place, after publishing, the changes will be available on every side which belongs to the tenant.
- Jbrines1969Jan 21, 2025Brass Contributor
Hi Sigi7 sorry this is the third time on pasting this reply.
Sorry I am new to this so wasn't aware that you could do that, can you point me in the right direction for future projects?
J
- Jbrines1969Jan 20, 2025Brass Contributor
Hi Sigi7 sorry I am new to this and wasn't aware you can do that
- Jbrines1969Jan 20, 2025Brass Contributor