You need to sign in to do that
Don't have an account?
RoyGilad
Analytics API from Apex
Hi All,
I am trying to run a report from apex and get the JSON response I've looked the the documentation but I can see how to get the data from out-side the system but I can't find how to run the report from within Salesforce,
Please help,
Thank you,
Roy
Link to the documentation:
http://www.salesforce.com/us/developer/docs/api_analytics/index.htm
Hi All,
What I did in the end is that I have invoked the Analytics API as an external service:
Not the best solution but it works,
Enjoy,
Roy
All Answers
Hi,
Do you want to use analytics api right within apex to access data from same salesforce org?
Hi Roy,
I dont think that is directly possible, you may try calling the URL and working on the same,
See the links below for similar discussion,
http://salesforce.stackexchange.com/questions/337/can-report-data-be-accessed-programatically
http://sfdc-heretic.warped-minds.com/2006/04/10/progmatic-access-to-salesforcecom-reports/
Regards,
Ashish
Hi All,
What I did in the end is that I have invoked the Analytics API as an external service:
Not the best solution but it works,
Enjoy,
Roy
Thats really Awesome!!!
Thanks a lot for sharing the Solution Roy.
Regards,
Ashish
Since Spring'14, Analytics API is available directly from Apex:
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_analytics_intro.htm|StartTopic=Content%2Fapex_analytics_intro.htm|SkinName=webhelp