Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

salesforce-reporting

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

salesforce-reporting

Get data from Salesforce reports with python

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

===================== Salesforce Reporting

Get data straight from your Salesforce reports via python using the Analytics API.


Install

Install via pip::

pip install salesforce-reporting 

Examples

^^^^^^^^^^^^^^ Authentication ^^^^^^^^^^^^^^

Connect to the Salesforce Analytics API and request data from a report::

import salesforce_reporting 

my_sf = salesforce_reporting.Connection('your_id', 'your_secret',               
'your_username', 'your_password', 'your_instance') 
my_sf.get_report('report_id', includeDetails=True) 

^^^^^^^^^^^^^^^^^^^^^^^ Get records from report ^^^^^^^^^^^^^^^^^^^^^^^

Use the ReportParser to access all the records included in a report::

report = my_sf.get_report('report_id', includeDetails=True) parser = salesforce_reporting.ReportParser(report)

parser.records()

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Extract series from matrix report ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For a matrix report grouped across the top by Calendar Month doing::

report = my_sf.get_report('report_id') matrix_parser = salesforce_reporting.MatrixParser(report)

matrix_parser.series_down('May 2012')

Will return all values for 'May 2012' as values in a dictionary with the row groupings as keys.


Coming Soon

  • Simplified Authentication process
  • Access to Dashboards

Author & License

MIT License. Created by Chris Hall.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc