2

Is there any way we can get report type id, either through query or anyother way. We would like to change report type to another one. Any suggestions are welcome

2

The only way to retrieve reportType is through Metadata API, which is described here

If you would like to update the current report with new reportType, you have to use Metadata API as well, described here

If you would like to do it within the Salesforce platform, you can use Apex Wrapper for the Salesforce Metadata API, which is available here on GitHub.

  • Thanks Adrain, i was trying with apporach where i have fetched all metadata through force.com ide..now i am confused with the nomenclature used by salesforce for example for old report type in metadata name is :<reportType>OpportunityCustomEntity$Plan__c</reportType>...While in salesforce we have Opportunities_with_Plans... – David Mycka Jul 1 '16 at 15:41
  • How would it map to our new reportype name whose salsforce name is Opportunities_with_Plans_Custom – David Mycka Jul 1 '16 at 15:42
0

You cannot retreive report type from Soql query.Here is the idea exchange Link @David Mycka

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.