Mule 4 Mulesoft Tutorial

Salesforce – Job Info, Batch Info, Batch Result


In our previous tutorial “CREATE BULK JOB SALESFORCE CONNECTOR” we covered on creating bulk jobs in salesforce via mule 4. In this tutorial to fetch the details related to the job created, like how many records/batches failed, successful records/batches and its number  or current status of the job; we will be using salesforce connector components provided by Mule.

We will be covering following salesforce connector in Mule 4:

  1. Job Info
  2. Batch Info List
  3. Batch Info
  4. Batch result stream
  5. Batch result

 

Job Info


Salesforce Job Info connector is used to get the details for a particular job that has been created in salesforce. This operation enables you to track the execution status.

Parameter

On successful execution of the “job info” below in the output:

Configuration –

Output –

 

Batch Info List


Salesforce Batch Info List connector get information about all batches in a job.

Parameter

On successful execution of the “job info” below in the output:

Configuration –

Output –

 

Batch Info


Salesforce Batch Info connector get information about a particular batch inside a job.

Parameter

Batch Info Parameter should contain Job Id and Batch Id for which details needs to be fetched.

On successful execution of the “job info” below in the output:

Configuration –
We will be sending JobId and id (batch Id) to Batch Info, to retrieve batch details.

Output –

 

Batch result


Salesforce Batch result connector get the result of the records processed inside a particular batch.

Parameter

Batch To Retrieve Parameter should contain Job Id and Batch Id for which details needs to be fetched.

On successful execution of the “job info” below in the output:

Configuration –
We will be sending JobId and id (batch Id) to Batch result, to retrieve batch result.

Output –

 

Batch Result Stream


Salesforce Batch Result Stream connector get the result of the records processed inside a particular batch. Best used when there are huge records result to be pulled.

Parameter

Batch To Retrieve Parameter should contain Job Id and Batch Id for which details needs to be fetched.
Streaming Strategy can store data in Memory with “Repeatable In Memory Stream” Config and stores data in file with “Repeatable File Store Stream”

On successful execution of the “job info” below in the output:

Configuration –
We will be sending JobId and id (batch Id) to Batch Result Stream, to retrieve batch result.

Output –

 

Download Mule Project for this tutorial

 

Official Mule 4 documentation on Jobs and Batch. Link.
Also refer to Bulk API Guide on Salesforce. Link

 


About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.

7 comments

  1. linked here bizopsbusiness.com

    Thanks for the strategies presented. One thing I should also believe is always that credit cards providing a 0 monthly interest often entice consumers with zero monthly interest, instant endorsement and easy over-the-internet balance transfers, nonetheless beware of the top factor that is going to void that 0 easy streets annual percentage rate and also throw you out into the very poor house rapidly.

  2. how to do amazon advertising

    I was curious if you ever considered changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or 2 pictures. Maybe you could space it out better?

  3. Dominick Eichman

    I would like to thank you for the efforts you’ve put in writing this blog. I am hoping to view the same high-grade content by you later on as well. In truth, your creative writing abilities has motivated me to get my very own website now 😉

  4. Karren Pak

    This is the right website for anyone who really wants to find out about this topic. You realize so much its almost tough to argue with you (not that I really would want to…HaHa). You certainly put a brand new spin on a topic which has been written about for decades. Excellent stuff, just great!

  5. Quinn Chernoff

    I was excited to find this site. I need to to thank you for ones time for this wonderful read!! I definitely loved every bit of it and i also have you saved as a favorite to see new information on your web site.

  6. Lino Monkhouse

    After looking at a handful of the articles on your web page, I really appreciate your technique of writing a blog. I book-marked it to my bookmark webpage list and will be checking back in the near future. Please visit my web site too and tell me what you think.

  7. Bev Meservy

    Having read this I believed it was really informative. I appreciate you taking the time and effort to put this short article together. I once again find myself personally spending a significant amount of time both reading and posting comments. But so what, it was still worthwhile!

Leave a Reply

Your email address will not be published.