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
Hailey CarterHailey Carter 

Is there a way to move multiple reports into a folder at once?

We're creating a new report file structure and are trying to find a way to move multiple reports into a folder at once. Is there a way to do a mass upload (like something using data loader) or is this something that will need to be done one by one?
Alain CabonAlain Cabon
Hi Hailey,

The easiest way is to retrieve all the reports with the retrieve command by using the workbench (zip file).

You just move the reports inside the new folder (same developer name) on disk after unzipping the retrieved file of the reports. 

The report developer name of a report is unique for your org and belongs to only one folder.

Deploying an existing report developer name (with the workbench) in a different folder is the same as moving it from its current folder to the new folder.

SELECT Name, DevelopernameFoldername FROM report

SELECT DeveloperNameName FROM Folder
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>MyReportFolderDeveloperName1/MyReportDeveloperName1</members>
        <members>MyReportFolderDeveloperName2/MyReportDeveloperName2</members>
        <name>Report</name>
    </types>
    <version>47.0</version>
</Package>

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_report.htm