You need to sign in to do that
Don't have an account?
Rick MacGuigan
How to get the Report ID's 18 characters
How do you get the '18' character id for a 'report?' Not the account Id.
I'm trying to look at the source for a report using the following URL but it's failing becase I only have the 15 character id of the report.
/services/data/v29.0/analytics/reports/00OJ0000000e1R1/describe
I'm trying to look at the source for a report using the following URL but it's failing becase I only have the 15 character id of the report.
/services/data/v29.0/analytics/reports/00OJ0000000e1R1/describe
But if you need to have the 18 character ID's here are some helpful links:
15 – 18 char converter:
http://www.adminbooster.com/tool/15to18
Presentation slides on report classes
http://files.meetup.com/12723112/PeterKnolle_2014_APR_03_LVSFDCDUG.pdf
Heres the solution to save others tons of time:
Using the <analytics:reportChart> Apex component
http://www.salesforce.com/docs/developer/pages/Content/pages_compref_analytics_reportChart.htm
Where:
- filter="[{column:'Audit__c.Name',operator:'equals',value:'{!Audit__c.Name}'}]"/>Column value is the object name associated with the report column
- Operator is the comparison operand
- Value is what the column value must equate to . This can be a merge field, text, number……To find the column value do the following:
Open salesforce Workbench at : https://workbench.developerforce.com/restExplorer.phpLog into your salesforce or (test, production,….)
Select ‘Utilities’ from the top menu
Select REST Explorer
Click the Execute button
Drill down to the ‘reportMetadata | detailColumns
The column value will be the name associated with the position (left to right) where the index starts at ‘0.’
All Answers
Create a new custom formula field for the object you are interetsed in and in the box for the formula enter
CASESAFEID(Id)
This will return the 18 digit ID which you can then use in your reports.
Thanks,
Shashank
I am trying to run this URL in order to build the filter for the visual force component: https://cs10.salesforce.com/services/data/v29.0/analytics/reports/00OJ0000000e1P0MAI/describe
getting this error: INVALID_SESSION_ID Session expired or invalid
Cannot provide reports on visualforce page embedded on custom object. It does not filter by the ID of the object. Need to use this filter on analytics:reportChart>
Need to build the filter attributeName on the < analytics:reportChart> to build the id name to filter on .
Any ideas ???
But if you need to have the 18 character ID's here are some helpful links:
15 – 18 char converter:
http://www.adminbooster.com/tool/15to18
Presentation slides on report classes
http://files.meetup.com/12723112/PeterKnolle_2014_APR_03_LVSFDCDUG.pdf
Heres the solution to save others tons of time:
Using the <analytics:reportChart> Apex component
http://www.salesforce.com/docs/developer/pages/Content/pages_compref_analytics_reportChart.htm
Where:
- filter="[{column:'Audit__c.Name',operator:'equals',value:'{!Audit__c.Name}'}]"/>Column value is the object name associated with the report column
- Operator is the comparison operand
- Value is what the column value must equate to . This can be a merge field, text, number……To find the column value do the following:
Open salesforce Workbench at : https://workbench.developerforce.com/restExplorer.phpLog into your salesforce or (test, production,….)
Select ‘Utilities’ from the top menu
Select REST Explorer
Click the Execute button
Drill down to the ‘reportMetadata | detailColumns
The column value will be the name associated with the position (left to right) where the index starts at ‘0.’