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
Jennifer BERNARDJennifer BERNARD 

How to retrieve report using sfdx source ?

Hello, I would like to know if it's possible to retrieve Report metadata using the command sfdx force:source:retrieve ?

I tried using the following:
sfdx force:source:retrieve -m Report:FolderName/Name
sfdx force:source:retrieve -m Report:FolderName/DeveloperName

FolderName, Name and DeveloperName being the fields we can find in the Report's object. Unfortunately, my report was not found (it's a public one).

Am I missing something ?
 
SwethaSwetha (Salesforce Developers) 
HI Jennifer,
Does https://salesforce.stackexchange.com/questions/264026/using-sfdx-to-retrieve-the-report-meta-data help?

If this information helps, please mark the answer as best. Thank you
Jennifer BERNARDJennifer BERNARD

Hello Swetha,

Thanks for your answer. It does not really answer the question unfortunately.

In the link provided, they are using the manifest parameter (-x) of the source command which is a bit like using mdapi command to me as we are using a package.xml to retrieve data.


But the title I put is not entirely clear as I stated the "source command", not the "source command using the metadata parameter", I apologize. I will update the title if possible.