RE: How to batch results from jdbc to Salesforce

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: How to batch results from jdbc to Salesforce

Tashani Kathriarachchi
The payload has to be prepared like this (example below):
1) A HashMap which contains the Customer attributes. i.e. the HashMap should contain the Customer object's member attribute names as keys and the values should be the attributes values. [map.put("City", "London");]
Let us call this as customerMap.
2) The customerMap should be added to an ArrayList. Let us call this as allCustomersList
3) The allCustomersList should be added to another HashMap.
Let us call this as payloadMap. The payloadMap should contain minimum of 2 attributes:
a) "type", "Account"
b) "objects", allCustomersList

The item (a) in the payloadMap represents the type of SF object to create. In this case it is Account.
The item (b) in the payloadMap represents the list of objects to create. In our case allCustomersList contains information for only one Customer (which is created in step 1 above).

If you are able to send this payload to the Mule SF connector, then it creates the Customer/Accounts objects in Salesforce.

Hope this helps.

- ananth --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Loading...