You need to sign in to do that
Don't have an account?
SaurabhDua
Multiple record insert using Salesforce REST
Hello Experts,
I am looking for the way to insert multiple records using XML and standard rest API.
using JSON in am able to do for example
i am able to insert single records using XMl for example
<Account>
<name>SampleAccount1</name>
<phone>111111111</phone>
<website>www.salesforce.com</website>
</account>
is there a way to insert bulk records in the same format.
what should be the end point for the composite structure
Regards
Saurabh
I am looking for the way to insert multiple records using XML and standard rest API.
using JSON in am able to do for example
{ "records" :[{ "attributes" : {"type" : "Account", "referenceId" : "ref1"}, "name" : "SampleAccount1", "phone" : "1111111111", "website" : "www.salesforce1.com", "numberOfEmployees" : "100", "industry" : "Banking" },{ "attributes" : {"type" : "Account", "referenceId" : "ref2"}, "name" : "SampleAccount2", "phone" : "2222222222", "website" : "www.salesforce2.com", "numberOfEmployees" : "250", "industry" : "Banking" },{ "attributes" : {"type" : "Account", "referenceId" : "ref3"}, "name" : "SampleAccount3", "phone" : "3333333333", "website" : "www.salesforce3.com", "numberOfEmployees" : "52000", "industry" : "Banking" },{ "attributes" : {"type" : "Account", "referenceId" : "ref4"}, "name" : "SampleAccount4", "phone" : "4444444444", "website" : "www.salesforce4.com", "numberOfEmployees" : "2500", "industry" : "Banking" }]
i am able to insert single records using XMl for example
<Account>
<name>SampleAccount1</name>
<phone>111111111</phone>
<website>www.salesforce.com</website>
</account>
is there a way to insert bulk records in the same format.
what should be the end point for the composite structure
Regards
Saurabh