Skip to content

Retrieve a CSV file with information of an org's Bulk API jobs

Notifications You must be signed in to change notification settings

fwxs/sf_bulk_api_report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Bulk API report

Retrieve a CSV file with information of an org's Bulk API jobs.

Credentials file format

{
    "client_id": "<client id>",
    "client_secret": "<client_secret>",
    "username": "<username>",
    "password": "<password followed by user token>",
    "grant_type": "password"
}

Usage

User profile must be have:

  • API enable checked
  • Manage Data Integrations checked

Otherwise, when trying to get data from /services/data/vXX.X/jobs/ingest, you will get a NOT FOUND Error

$ python Bulk_API_Report.py --creds-file [Json creds file] --env [prod or dev]

[*] Retrieving access token from https://[login|test].salesforce.com/services/oauth2/token
[!] Token received
[*] Retrieving bulk API jobs information from <instance url>
[*] Dumping [amount of rows retrieved] jobs to Bulk_API_Jobs.json
[*] Dumping data to a CSV file.

About

Retrieve a CSV file with information of an org's Bulk API jobs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages