03-21-2023 08:38 AM
I am using DemandTools 5.21 and cannot figure out how to move stale reports from one report folder to another for deletion.
Which scenario category do I select? Is there a help document I can reference? If not available, is it on the product roadmap?
Solved! Go to Solution.
03-22-2023 09:41 AM
It was my goal to have as much done with one tool as possible to steamline processes and onboarding for my team thus using DemandTools as much as possible. We went back to Workbench for this; did not think about going back to Classic but will keep that in mind too! Thanks!!
03-21-2023 09:26 AM
Hi @carilovorn ,
Currently we do not have this functionality in DemandTools 5.x and it is not currently on our roadmap. We definitely want to hear what you'd like to see in the platform, so please submit this as a feature request. Click here to find out how!
03-22-2023 09:02 AM
@carilovorn This is something that plagues all Salesforce Admins. Unfortunately you have to use Workbench and the Metadata API to do this. https://help.salesforce.com/s/articleView?id=sf.bulk_move_reports_dashboards.htm&type=5. Or you can switch back to Classic where you can do drag 'n drop of reports. https://theeverydayadmin.com/2020/04/06/how-admins-can-mass-move-reports-and-dashboards/
03-22-2023 09:41 AM
It was my goal to have as much done with one tool as possible to steamline processes and onboarding for my team thus using DemandTools as much as possible. We went back to Workbench for this; did not think about going back to Classic but will keep that in mind too! Thanks!!
03-22-2023 09:47 AM
Totally agree. It would be nice to have this ability in DemandTools. You can submit the feature requests for it as Anthony mentioned. I submitted it as well, but don't think it shows up for others to comment on until someone on the Validity side adds it to the "Under Consideration" section. I don't see anything showing up in the "Not on Roadmap" section so not sure how that part works.
03-22-2023 09:49 AM
@Murphybp79 said it best, and I was surprised to find that you can't edit the report folder even in the Developer Console. However, I did find a simpler Metadata API option that works with Visual Studio Code, if you can get this working.
Here's the trailhead on installing VS for Salesforce -https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-...
Once you have VS installed with Salesforce CLI extensions, add the extention "Salesforce Package.xml Generator Extension for VS Code" to select the reports you want to move.
1. In Salesforce, create the new report folder. Then go to the rename folder option to get the Folder Unique Name. In my test, I used "AdminArchivedUnusedReports"
2. In VS, under the reports folder, create a new folder with the Folder Unique Name.
3. Expand the folders for where the existing reports are located, select the reports to move and drag them to the new folder.
4. Right click on the folder name and select "SFDX: Deploy Source to Org"
5. After the deployment completes check Salesforce to confirm the reports were moved.
Hope this helps!
04-09-2024 11:15 AM
I just found a case where I needed to move all the existing Salesforce sample reports to a new hidden folder. So, here are the details to get this done in Visual Studio.
1. Create a new folder in Lightning, I called it "Salesforce Sample Reports"
2. Add a sample report to this new folder.
3. In Visual Studio Code, retrieve all the reports using Salesforce Package.xml Generator.
4. In Lightning, copy the existing folder name (this will be needed to create a new subfolder), and then rename the original report unique name with something like (x).
5. In the Salesforce Sample Reports folder, create a new folder with the unique API name shown in VSC. (When trying to copy the unique name from lightning, it strips out the underscores.)
6. In VSC, drag the renamed folder to the Salesforce Sample Reports folder, and then right click and deploy to source.
7. Check Salesforce report folder to confirm reports have been moved to the new subfolder.
8. Go back to original source folder that was renamed in step 4 and delete the folder.
03-22-2023 09:52 AM
@michael-wtds Nice tip. I'll check this option out. I haven't gotten as proficient with VS as I'd like to.
03-22-2023 10:01 AM
@Murphybp79 VS is gold when it comes making bulk changes to report filters, or fixing dashboards that want load when a report field changes. So, I highly recommend getting familiar with it just for report and dashboard fixes.
04-24-2023 10:12 AM
The old DemandTools (v2.91) had its own module called ReportEdit just for managing reports. That's something that isn't in DT 5.
Get industry news, expert insights, strategies, and hot tips, served up fresh every week.
Visit the Validity blog