Cli: Cannot retrieve reports via sfdx force:source:retrieve -m Report

Created on 22 Jan 2019  路  7Comments  路  Source: forcedotcom/cli

Summary

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.

Steps To Reproduce:

  1. Targetting a non-Scratch org which contains reports, run the sfdx command indicated above

Expected result

Report metadata is retrieved from the Org

Actual result

Message - No Results Returned

Additional information

_Feel free to attach a screenshot_.

SFDX CLI Version:

sfdx-cli/6.49.0-8edc6e0f5d (windows-x64) node-v8.9.4

Most helpful comment

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.

All 7 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings