Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedContentType not supported through metadata api #452

Closed
KetanAdkar opened this issue Jun 23, 2020 · 3 comments
Closed

ManagedContentType not supported through metadata api #452

KetanAdkar opened this issue Jun 23, 2020 · 3 comments
Labels
duplicate Issue or pull request already exists

Comments

@KetanAdkar
Copy link

Summary

getting an error - ERROR running force:source:retrieve: We can’t retrieve the specified metadata object: ManagedContentType. Certain metadata types, like ManagedContentType are not currently supported by the CLI.
File a bug here: https://github.com/forcedotcom/cli/issues and provide the name of the unsupported metadata type

Steps To Reproduce:

Repository to reproduce: dreamhouse-lwc

NOTE: If your issue is not reproducable by dreamhouse-lwc, i.e. requires specific metadata or files, we require a link to a simple Salesforce project repository with a script to setup a scratch org that reproduces your problem.

  1. This is step 1.
  2. This is step 2. All steps should start with '1.'

Expected result

Describe what should have happened.

Actual result

Describe what actually happened instead.

Additional information

Feel free to attach a screenshot.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version):

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

OS and version:

@FabienTaillon
Copy link

This is a duplicate of #418
ManagedContentTypes can be retrieved by the Metadata API, but not in source format.
So you can't use sfdx force:source:retrieve, but sfdx force:mdapi:retrieve will work.

You won't be able to use it directly in a sfdx project though as source format isn't working for this metadata type, but you can still deploy it separately with sfdx force:mdapi:deploy.

@amphro amphro added the duplicate Issue or pull request already exists label Jul 27, 2020
@amphro amphro closed this as completed Jul 27, 2020
@kamran-jabbar
Copy link

kamran-jabbar commented Aug 11, 2020

@FabienTaillon As I am trying to get full sandbox copy on my local machine so will that command sfdx force:mdapi:retrieve what I have inside pacakge.xml from sandbox? How can I make sure it copies everything?

@FabienTaillon
Copy link

Yes it will work. At least it will give you everything that is available in the Metadata API for this Metadata Type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants