• Raghav T
  • NEWBIE
  • 20 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
I have unfortunately deployed the reports that are not needed. Now I wanted to delete that Reports. Please specify the steps to do it. thanks You.
And does deletion of Reports from package will delete Report Folder also.
Here are some Reports that deployed and needs to be deleted.:
<members>RMA_Reports/RMA_Cases_Closed</members>
<members>TSE_Reports/AP_Escalated_Cases</members>
<members>TSE_Reports/EMEA_Escalated_Cases</members>
<members>TSE_Reports/LA_Escalated_Cases</members>
<members>TSE_Reports/NA_Escalated_Cases</members>
<members>TSE_Reports/Survey_Results_by_TSE</members>
<members>Practice_Service_Reports/US_Support_Queue</members>
<members>Sales_and_Marketing/Campaigns_With_Leads</members>

 
I want to get All Dashboard and associated Reports to that dashboard in salesforce. If anyone can help. Thank You.
This is Controller Class:
public with sharing class DataController {
    
    @AuraEnabled(cacheable=true)
    public static List<List<sObject>> getData(String keyword){
        String searchquery = 'FIND \'' + keyword + '*\' IN ALL FIELDS RETURNING Account(Id, Name), Contact(Id, Name)'; 
        List<List< SObject>> searchList = search.query(searchquery);
        system.debug('Search List is ' + searchList);
        Account[] searchAccounts = (Account[])searchList[0];
        System.debug('searchAccounts'+searchAccounts);
        Contact[] searchContacts = (Contact[])searchList[1];
        System.debug('searchContacts'+searchContacts);

        return searchList;
    }
}
Thanks.
This is Controller Class:
public with sharing class DataController {
    
    @AuraEnabled(cacheable=true)
    public static List<List<sObject>> getData(String keyword){
        String searchquery = 'FIND \'' + keyword + '*\' IN ALL FIELDS RETURNING Account(Id, Name), Contact(Id, Name)'; 
        List<List< SObject>> searchList = search.query(searchquery);
        system.debug('Search List is ' + searchList);
        Account[] searchAccounts = (Account[])searchList[0];
        System.debug('searchAccounts'+searchAccounts);
        Contact[] searchContacts = (Contact[])searchList[1];
        System.debug('searchContacts'+searchContacts);

        return searchList;
    }
}
Thanks.