function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MUBASHER KHAZIRMUBASHER KHAZIR 

Is their any way by which we can Export Content from a Salesforce CMS workspace and Import the same content to another Workspace?

I need to export content of one salesforce CMS workspace to another CMS workspace, I crawled the internet but found nothing helpful. Their were some ideas regarding translation, but that somehow didn't worked out.
AnudeepAnudeep (Salesforce Developers) 
As far as I know, you can retrieve the custom content type in an org using ManagedContentType. However, the Metadata does not list a workspace to alter so guess that is not possible
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">;
    <types>
        <members>CMSArticleContentType</members>
        <name>ManagedContentType</name>
    </types>
    <version>47.0</version>
</Package>

https://developer.salesforce.com/docs/atlas.en-us.222.0.communities_dev.meta/communities_dev/cms_dev_customcontenttypes.htm

 
MUBASHER KHAZIRMUBASHER KHAZIR

@Anudeep
I tried to fetch the data using Content Delivery API , I get the content with all the information i need in JSON format, but when I try to import the file I get an error 
"  "details": [{"message": "No content found in input to be imported. Content did not import to the workpsace."}]
 

 

here is the link to use content Delivery API
https://developer.salesforce.com/blogs/2019/11/content-delivery-api-to-extend-or-integrate-content.html

Content Delivery API (https://developer.salesforce.com/blogs/2019/11/content-delivery-api-to-extend-or-integrate-content.html)

Tom TamTom Tam
@Anudeep
Any updates on exporting to a different workspace? I have CMS content in QA I would like to migrate to Production.
AnudeepAnudeep (Salesforce Developers) 

To import content, you should have a zip file with JSON files inside it. The JSON files should follow the format documented here:

https://help.salesforce.com/articleView?id=cms_import_content_json.htm&type=5

If you find this information helpful, please mark this as Best Answer. It may help others in the community. Thank You!

Anudeep