You need to sign in to do that
Don't have an account?
Sergio Mac Intosh
Publish multiple platform events using REST API
Hi, Can i publish multiple platform events using the REST API?
A single record works with this JSON:
A single record works with this JSON:
{ "Order_number__c": "11111", "Has_Shipped__c": true }How should the JSON look for multiple records?
[ { "Name" : "Xytrex Co.",
"Description" : "Industrial Cleaning Supply Company",
"Account Number" : "ABC15797531"
},
{ "Name" : "Watson and Powell,
Inc.",
"Description" : "Law firm. New York Headquarters",
"Account Number" : "ABC24689753"
} ]
you can user Json array for multiple records.
For more information Please see
Click Here (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_sobject_tree_flat.htm)
If its best answer , please vote it as best answer