Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use report API with this library? #58

Closed
zhaoxin opened this issue Apr 9, 2015 · 1 comment
Closed

How do I use report API with this library? #58

zhaoxin opened this issue Apr 9, 2015 · 1 comment

Comments

@zhaoxin
Copy link

zhaoxin commented Apr 9, 2015

For example, How can I run a report with simple_salesforce?
Thanks.

@ChrisShumaker
Copy link

The short answer is, use the generic restful method:

params = { 'includeDetails' : 'true'}
report = sf.restful('analytics/reports/<your_report_id>', params=params)

Other than that, I do not believe this is supported but at least this saves you from setting up authentication, dealing with request/response objects, and converting to a nicer format like OrderedDict.

Recommend closing this issue and opening a new issue for handling reports better as reports in SF are common and their content is usually the most important part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants