Trying to pull Reports down from a Dev Sandbox (i.e., non Scratch org) with the command
sfdx force:source retrieve -m Report
gives no results returned, when there are definitely reports in the Org. No package.xml used in this scenario and I've been made aware that the metadata API doesn't support wildcarding for reports, which could be a factor here.
Report metadata is retrieved from the Org
Message - No Results Returned
_Feel free to attach a screenshot_.
SFDX CLI Version:
sfdx-cli/6.49.0-8edc6e0f5d (windows-x64) node-v8.9.4
@robcowell Reports are created Private by default and therefore are ignored in retrieve. Make your report public and it should work
This is not a solution.
Hi @clairebianchi this is not working for public reports either. I saved a report in the ootb public reports folder and I couldn't retrieve anything.
Including the folder name lets you retrieve an individual report
sfdx force:source:retrieve -m Report:ReportFolderName/Report_Name
Hey @robcowell I just struggled through the same issue... saved my report in a public folder, tried to retrieve it using sfdx, and the response in the terminal was that the report was not found. When I checked the file structure, though, I found that it had actually pulled down the report. Maybe check to see if the files did actually get pulled and it just reported incorrectly..?
Try this https://www.npmjs.com/package/sfdx-ext (ext:mdapi:retrieve to retrieve everything you need)
Including the folder name lets you retrieve an individual report
sfdx force:source:retrieve -m Report:ReportFolderName/Report_Name
I got my report using this. This is the correct solution even though it says nothing has retrieved.
Most helpful comment
I got my report using this. This is the correct solution even though it says nothing has retrieved.