sf_bulkapi_dataloader_report

1.0.4 • Public • Published

Extract Salesforce Bulk dataload log files

Salesforce's Bulk api to load large volume of data is very useful but it unfortunately has non productive interface when it comes to logs.

While we learn how many batches were processed, # of records loaded succesfully and # of records that failed. But, it lacks the ability to provide a comprehensive list of failed records and corresponding failure message.

This node application retrieves the logs in following format

  • Raw request and result csv files for each batch
  • Merged request and result csv file for each batch
  • Merged request and result csv file for all batch

Installation

Salesforce Connected App

The app uses Salesforce's Oauth "Client Credential" flow. This requires a System administrator creates a connected app which uses client credential setting as per images [Note: Client Credentail flow enables connection to Salesforce without the need for Salesforce Username and password]

Connected App Screenshot

  • Connected App Screenshot

Client Credentials Flow Screenshot

  • Client Credentials Flow Screenshot

Dataload_Files/CREDS_PREPROD.json

Copy the client Id and client secret generated from the above connected app and update the CREDS_PREPROD.json

Run Locally

Install npm package

  npm i sf_bulkapi_dataloader_report

Create a javascript file say 'RetrieveDataLoadLogs.js with the following line

const sf_bulkapi_dataloader_report = require('sf_bulkapi_dataloader_report');

Create a folder 'logs' Command to run logs related to a job

  node RetrieveDataLoadLogs.js --CredFile "CREDS_PREPROD.json" --logfile "./logs/" --jobId "750F400000ABJeb"

Package Sidebar

Install

npm i sf_bulkapi_dataloader_report

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

22.9 kB

Total Files

5

Last publish

Collaborators

  • deepakandeli