0

My task is to upload all of the reports of an old .org to a completely new .org

I found that it is possible to retrieve reports via .xml-files from an old .org and upload it to a new org via workbench. Like this

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
   <members>FOLDERA/REPORTA</members>
   <members>FOLDERB/REPORTB</members>
   <name>Report</name>
</types>
<version>43.0</version>

I've tested this way and it does work fine

BUT

the old .org contains thousands of reports and it would be quite tiresome to go through each folder at a time, customizing the .xml files each time.

Is there a way to mass download, transfer and upload all the reports and files at once, so that I have the exact same structure in the new and yet "clean" .org?

I'd appreciate any feedback!

Thank you already in advance!

UPDATE:

The suggestion from @Badbuxx, just retrieved an empty folder called "unpacked" cotaining the .xml file called "packaged" but unfortunately nothing more.

<?xml version="1.0" encoding="UTF-8"?>
<Package
xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
    <members>*</members>
    <name>Report</name>
</types>
<version>43.0</version>
7
  • did you tried just to use <members>*</members> ?
    – Badbaxx
    Jan 28 at 10:23
  • Thank you for your input @Badbaxx I just did, but unfortunately the resulting .zip file is empty
    – Lekü
    Jan 28 at 12:52
  • Indeed. Just found this was documentation : developer.salesforce.com/docs/atlas.en-us.api_meta.meta/… . Maybe that could help
    – Badbaxx
    Jan 28 at 13:30
  • @Badbaxx Does this mean there is no way to retrieve all the reports at once?
    – Lekü
    Jan 28 at 13:40
  • Unfortunatly seem like you have to retrieve the list of all your report with listMetadata() in your souce org and populaite package.xml with them. If you can use sfdx, you may try to retrieve / deploy with retrieve / deploy command
    – Badbaxx
    Jan 28 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.