Ananth Krishnan
2013-11-12 15:23:20 UTC
The payload has to be prepared like this (example below):
<br />
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");]
<br />
Let us call this as customerMap.
<br />
2) The customerMap should be added to an ArrayList. Let us call this as allCustomersList
<br />
3) The allCustomersList should be added to another HashMap.
<br />
Let us call this as payloadMap. The payloadMap should contain minimum of 2 attributes:
<br />
a) "type", "Account"
<br />
b) "objects", allCustomersList
<br /><br />
The item (a) in the payloadMap represents the type of SF object to create. In this case it is Account.
<br />
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).
<br /><br />
If you are able to send this payload to the Mule SF connector, then it creates the Customer/Accounts objects in Salesforce.
<br /><br />
Hope this helps.
<br /><br />
- ananth
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
<br />
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");]
<br />
Let us call this as customerMap.
<br />
2) The customerMap should be added to an ArrayList. Let us call this as allCustomersList
<br />
3) The allCustomersList should be added to another HashMap.
<br />
Let us call this as payloadMap. The payloadMap should contain minimum of 2 attributes:
<br />
a) "type", "Account"
<br />
b) "objects", allCustomersList
<br /><br />
The item (a) in the payloadMap represents the type of SF object to create. In this case it is Account.
<br />
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).
<br /><br />
If you are able to send this payload to the Mule SF connector, then it creates the Customer/Accounts objects in Salesforce.
<br /><br />
Hope this helps.
<br /><br />
- ananth
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email