The Salesforce Report Package is a Python library that provides functionality to interact with Salesforce reports using the Simple Salesforce.
This package enables you to retrieve Salesforce reports and convert them into pandas DataFrames for further analysis and processing within your Python environment. It simplifies the process of fetching Salesforce report data and makes it easy to work with in data analysis workflows.
Important
This only works for salesforce report that do NOT have GROUPED ROWS or GROUPED COLUMNS for now.
To install the package, you can use pip:
pip install git+https://github.com/weiweikee/simple_salesforce_report
To upgrade the package, you can use:
pip install --upgrade git+https://github.com/weiweikee/simple_salesforce_report
To use this package
- First import the Salesforce_Report object.
from simple_salesforce_report import Salesforce_Report
- Providing an environment file containing Salesforce credentials and company information.
sf_report = Salesforce_Report(
sf_username,
sf_password,
sf_security_token,
sf_domain,
)
Please refer to example.env for arguments examples.
- Then, you can retrieve reports and convert them into pandas DataFrames.
df = sf_report.get_simple_report(report_id)
- simple_salesforce: A Python library for interacting with Salesforce APIs.
- pandas: A powerful data manipulation library in Python.
This package is licensed under the MIT License. See the LICENSE file for details.