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
suji srinivasansuji srinivasan 

Hi, I need to retrieve reports and dashboards using VScode from my org.

I mentioned reportfoldername/reportname .still unable to retrieve. 
<?
xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
        <members>Sales & Marketing Dashboards Reports/Win Ratio</members>
        <name>Report</name>
    </types>
    <types>
        <members>Sales and Marketing Dashboards/Sales Manager Dashboard</members>
        <name>Dashboard</name>
    </types>
    <version>54.0</version>
</Package>
Thanks in advance
Best Answer chosen by suji srinivasan
The TechieThe Techie
Try to retrieve in the following way -
https://www.youtube.com/watch?v=ExP52i0X6Oc

All Answers

The TechieThe Techie
Try to retrieve in the following way -
https://www.youtube.com/watch?v=ExP52i0X6Oc
This was selected as the best answer
mukesh guptamukesh gupta
Hi Suji,

You are almost correct but you need to add folder name 
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>MyReportFolder/Sales & Marketing Dashboards Reports/Win Ratio</members>
        <name>Report</name>
    </types>
    <types>
        <members>MyDBFolder/Sales and Marketing Dashboards/Sales Manager Dashboard</members>
        <name>Dashboard</name>
    </types>
    <version>54.0</version>
</Package>

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
suji srinivasansuji srinivasan
thankyou mukesh . I was able to retrieve reports as you suggested but unable to retrieve dashboards. In reports out of 9 only 7 was retrieved
what could be possible reason ? can you help me?