Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. https://domain name/services/data/v36.0/composite/tree/account/
  2.  
  3. {
  4. "records" :[{
  5. "attributes" : {"type" : "Account", "referenceId" : "ref1"},
  6. "name" : "SampleAccount1",
  7. "phone" : "1111111111",
  8. "website" : "www.salesforce1.com",
  9. "industry" : "Banking"
  10. },{
  11. "attributes" : {"type" : "Account", "referenceId" : "ref2"},
  12. "name" : "SampleAccount2",
  13. "phone" : "2222222222",
  14. "website" : "www.salesforce2.com",
  15. "industry" : "Banking"
  16. },{
  17. "attributes" : {"type" : "Account", "referenceId" : "ref3"},
  18. "name" : "SampleAccount3",
  19. "phone" : "3333333333",
  20. "website" : "www.salesforce3.com",
  21. "industry" : "Banking"
  22. },{
  23. "attributes" : {"type" : "Account", "referenceId" : "ref4"},
  24. "name" : "SampleAccount4",
  25. "phone" : "4444444444",
  26. "website" : "www.salesforce4.com",
  27. "industry" : "Banking"
  28. }]
  29. }
  30.  
  31. curl -X POST -H "Authorization: OAuth 00D280000013mzk!AQUAQKnGCLaJo2F0fmpegSMy4VSBCXVPJygVZG8Zf2rj7E6NJE3yueMITIxIAJT0YVjxpoJRe4PRR6okbPH6A86DAVMGVAEH" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 7db97417-e223-1319-a64e-4a72236b89dd" -d '{
  32. "records" :[{
  33. "attributes" : {"type" : "Account", "referenceId" : "ref1"},
  34. "name" : "SampleAccount1",
  35. "phone" : "1111111111",
  36. "website" : "www.salesforce1.com",
  37. "industry" : "Banking"
  38. },{
  39. "attributes" : {"type" : "Account", "referenceId" : "ref2"},
  40. "name" : "SampleAccount2",
  41. "phone" : "1111111111",
  42. "website" : "www.salesforce1.com",
  43. "industry" : "Banking"
  44. }]
  45. }' "https://domain name/services/data/v36.0/composite/tree/account/"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement