Forum Discussion
tdemichiei
Apr 06, 2020Copper Contributor
Move documents between team sites
Hi, I am attempting to use either copy or move to copy documents from one team site to another. The copy is working just fine, but I want to move the metadata (it is not managed metadata) along ...
- Apr 06, 2020Hi,
tdemichiei
The expected behavior is if the Content Type and Fields don't match at the destination, then only the document(s) move. In fact, you will be alerted with a message that the file contains properties that will be lost at the new destination.
You will have to ensure that the Content Type(s) as in the source library are available in the destination library. For example - you have a field/column in source library which was added in a specific custom content type and this content type was then added to your source library, you will have to ensure that similarly the same name content type with the field is created and added to your destination library for the files to move along with metadata.
Please let us know.
Thanks.
tdemichiei
Apr 06, 2020Copper Contributor
Which is the default behavior? Swaminathan Sriram I have the fields matching in both libraries, but the data is not moving.
Only the documents. Is the expected behavior that only the documents move?
Thanks
Swaminathan Sriram
Apr 06, 2020Iron Contributor
Hi,
tdemichiei
The expected behavior is if the Content Type and Fields don't match at the destination, then only the document(s) move. In fact, you will be alerted with a message that the file contains properties that will be lost at the new destination.
You will have to ensure that the Content Type(s) as in the source library are available in the destination library. For example - you have a field/column in source library which was added in a specific custom content type and this content type was then added to your source library, you will have to ensure that similarly the same name content type with the field is created and added to your destination library for the files to move along with metadata.
Please let us know.
Thanks.
tdemichiei
The expected behavior is if the Content Type and Fields don't match at the destination, then only the document(s) move. In fact, you will be alerted with a message that the file contains properties that will be lost at the new destination.
You will have to ensure that the Content Type(s) as in the source library are available in the destination library. For example - you have a field/column in source library which was added in a specific custom content type and this content type was then added to your source library, you will have to ensure that similarly the same name content type with the field is created and added to your destination library for the files to move along with metadata.
Please let us know.
Thanks.
- Pramodh_MDec 09, 2021Copper ContributorHello Sir
How or rather who do you do to ensure the content type and fields are matching in the source and destination libraries. Is there list of steps can i follow to do do so? Please assist - tdemichieiApr 06, 2020Copper Contributor
Swaminathan Sriramthe sites match with the fields, and the site does not allow custom content types. I am still unable to move the documents metadata.
I attempted to create a template out of the source document library, but I do not have the option to.
What do I need to do to enable the ability to create the template on a modern sharepoint library.
Thanks
- Swaminathan SriramApr 08, 2020Iron Contributor
Hi,
Can you try with a newly created document library at both source and destination with matching fields. Please let us know.
In Modern Team Sites and Communication Sites, by default when you create them, Custom Scripts is blocked because of which Save Library as template is not available in your Library settings page.
To enable save library as template in your Modern SharePoint Library, specific configurations have to be done in your SharePoint admin center (if not already done) and a specific PowerShell command should be run on the site where you would like to save library as template as per below -
1. SharePoint Admin Center (This step can be skipped if custom scripts configuration is already allowed) -
a). Navigate to the Settings page of the new SharePoint admin Center and sign in with an account that has SharePoint admin privileges.
b). At the bottom of the page, select classic settings page.
c). In Custom Script, select -
Allow users to run Custom Script on personal sites.
Allow users to run Custom Script on self-service created sites.
Save it and it can take up to 24 hours for the updates for your tenant.2. To allow Save list as template for your specific site collection -
Run the below command in SharePoint Online Management Shell after connecting to your SharePoint tenant using Connect-SPOService command -
Set-SPOSite <SiteCollectionURL> -DenyAddAndCustomizePages 0I hope this is helpful. Thanks.