Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "compositeRequest":[
- {
- "method":"PATCH",
- "url":"/services/data/v39.0/sobjects/Opportunity/SID_Opportunity_ID__c/SFO-2498",
- "referenceId":"newOpp1",
- "body":{
- "Bid_Number__c":"B889054",
- "Business_Area__c":"M&E",
- "Order_Number__c":null,
- "CloseDate":"2019-01-31",
- "OwnerId":"005D0000001mTR9IA2",
- "AccountId":"001D000000tw39BI0Q",
- "Call_to_Action__c":false,
- "StageName":"Upside",
- "Name":"Some random oppt"
- }
- },
- {
- "method":"PATCH",
- "url":"/services/data/v39.0/sobjects/Quote/SID_Bid_Key__c/JIGS*SALE*B889054",
- "referenceId":"newQuote1",
- "body":{
- "OpportunityId":"006D000000zLj7uIAC",
- "Name":"B889054"
- }
- },
- {
- "method":"PATCH",
- "url":"/services/data/v39.0/sobjects/Quote_Item__c/Quote_Line_Id__c/JIGS*SALE*B889054*1",
- "referenceId":"newQuoteLine1",
- "body":{
- "Item_Line_Id__c":"1",
- "Quote__c":"@{newQuote1.id}",
- "Description__c":"Some description"
- }
- }
- ]
- }
- {
- "compositeResponse":[
- {
- "body":null,
- "httpHeaders":{
- },
- "httpStatusCode":204,
- "referenceId":"newOpp1"
- },
- {
- "body":null,
- "httpHeaders":{
- },
- "httpStatusCode":204,
- "referenceId":"newQuote1"
- },
- {
- "body":[
- {
- "errorCode":"PROCESSING_HALTED",
- "message":"Invalid reference specified. No value for newQuote1.id found in newQuote1"
- }
- ],
- "httpHeaders":{
- },
- "httpStatusCode":400,
- "referenceId":"newQuoteLine1"
- }
- ]
- }
Add Comment
Please, Sign In to add comment