Skip to main content

Questions tagged [composite]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
42 views

Why does Salesforce Composite API take over 2 minutes to create multiple contacts in production but works fine in sandbox?

I'm experiencing a significant delay when using the Salesforce Composite API to create multiple contacts in a production environment. Specifically, when I attempt to create 25 contacts, it takes more ...
Waqas Ali's user avatar
0 votes
1 answer
28 views

Upsert In Composite Api not working

I have one requirement like if InsurancePolicy record with Policy_External_Id__c is already in salesforce then it should update that one else insert so for this I used Patch method below was my ...
Mahendra Sahu's user avatar
0 votes
0 answers
69 views

How to determine which record was successful when deleting, updating, or adding a sobject Collection to a CompositeAPI sub-request?

I want to save the ID issued by salesforce to the corresponding record in the local DB. I also want to know how to determine which record failed. Reasons below In the case of new additions, the ID ...
吉田大希's user avatar
0 votes
1 answer
309 views

Error returned executing composite API from Postman

I am using POstman to execute composite API. Got the sample request from this link - https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_record_manipulation.htm ...
SfdcBat's user avatar
  • 4,839
2 votes
1 answer
355 views

Composite sObject Collection call not reaching limit

The Composite API docs (ref) asserts that You can have up to 25 subrequests in a single call. Up to 5 of these subrequests can be sObject Collections or query operations, including Query and QueryAll ...
mhery's user avatar
  • 121
0 votes
1 answer
1k views

Composite API to delete multiple records by an external id

I have been looking for an example of what @sfdcfox suggested for this thread https://salesforce.stackexchange.com/a/332678/133263 "The first subsequent would be a get, the second the delete call&...
Lena Razov's user avatar
0 votes
1 answer
470 views

Composite API issue

I am trying to insert record into Member Plan object using composite API. Note : For simplicity in the below request I removed all other post in coposite API and adding only one with hard coded values ...
SFDC buddy's user avatar
2 votes
0 answers
1k views

Composite Request - Conditional reference

I have a basic composite request to Insert a case and fill the conatactId based on Email. Where no contact was found the 2nd sub request failed because the reference does not exist. Is there a way the ...
Raphael D's user avatar
  • 626
1 vote
1 answer
1k views

Accessing attributes referenceId in REST API Composite call

I am writing a composite call to create products and add them to strandard Pricebook. { "allOrNone":true, "collateSubrequests":false, "compositeRequest":[ {...
s v's user avatar
  • 13
1 vote
0 answers
139 views

Event created via composite API not showing up in Contact's activity timeline

We're seeing an issue with Events created via the composite API where one duplicate event in the composite batch is causing the other non-duplicate events to be only partially created, without their ...
Scott Hill's user avatar
1 vote
4 answers
1k views

Cannot get composite REST API call to work for CurrencyType update

In our multi-currency org, we get daily updates of conversion rates in the DatedConversionRate object and these need to be copied to the CurrencyType object. For those of you who don't know: DML is ...
Sander de Jong's user avatar
1 vote
1 answer
1k views

Composite Query - Use limit param on GET REST API

I'm trying to use the Salesforce REST API in order to get an OrderSummary sObject using its ID. With the following query /composite/sobjects/:SOBJECT_API_NAME?ids=1Os1q0000004FpWCAU&fields=...
beppe95's user avatar
  • 23
1 vote
1 answer
578 views

Composite API or Salesforce Flow API

I'm not a developer, so I might be missing something stupid. We are integrating Salesforce with another system via Mulesoft. The Mulesoft developers are trying to use the Composite API for the ...
Rick's user avatar
  • 11
2 votes
2 answers
1k views

When the triggers run in context of a composite standard Rest api, which governor limit it comes under?

We have many composite apis for external party to enter data or modify data in our org in real time when the external system receives data. We also have an integration with CTI <-> SF, where ...
Nagendra Singh's user avatar
2 votes
2 answers
813 views

Does SOQL query on Attachment Object needs to be done asynchronously?

Problem statement: External system is creating a custom object record and placing an attachment to the same record via composite REST API. After Insert trigger code that runs immediately for further ...
arut's user avatar
  • 5,331
1 vote
0 answers
620 views

UNSUPPORTED_MEDIA_TYPE Postman Error - Salesforce Composite Request with XML Payload not working

I created a composite XML payload to update a couple of fields in Salesforce. Used POST request by hitting this REST service https://test.salesforce.com/services/data/v54.0/composite/. I tried with ...
Pruthvi's user avatar
  • 51
1 vote
1 answer
1k views

How to optionally reference another request in a composite request?

I need to reference a third to one of two other requests. So there's a Publication_Subscription__c which has two properties: Contact__c Lead__c Always one of both exist and the other is null. So it'...
Tim Schmelter's user avatar
2 votes
0 answers
643 views

Composite request causes Bad Request 400 now

We are accessing salesforce via rest api. We have multiple instances with different features/model and versions. Following works in the old instance but not in the new. It's using a composite post ...
Tim Schmelter's user avatar
0 votes
1 answer
386 views

Are composite REST (or composite graph) subject to rate limits (in addition to the API request limits & allocations)?

In additions to details given in API Request Limits and Allocations & Composite Resources, are the composite REST (or composite graph) requests also subject to rate limits (i.e. per hour & per ...
arut's user avatar
  • 5,331
3 votes
1 answer
2k views

Composite api to call custom apex webservice

We have custom apex rest service, this service will be called by external application in regular time intervals(assume every 1 minute) which is causing high api hits to salesforce in a 24 hour time ...
pmr's user avatar
  • 41
0 votes
1 answer
681 views

Composite API request calling after insert twice for same root

I am firing a composite request. And I can see there are two debug logs getting generated with different Payment__c id. StudentPaymentTrigger on Student_Payment trigger event AfterInsert|...
Nagendra Singh's user avatar
0 votes
1 answer
456 views

Create case and attachment in one single transaction via Salesforce dotnet client

I would like to create a case and attachment in one single transaction by using the Salesforce DotNetForce client. This is how I would do this directly in Apex: // start transaction Case c = new Case(...
Cuban coffee's user avatar
  • 1,606
3 votes
0 answers
2k views

Salesforce Composite API - query related child records from multiple parent records

Trying a composite request to query related records in a bulk fashion using the referenceID relation. When multiple records are returned in the first query request, is there any way I can query the ...
Vignesh's user avatar
  • 33
2 votes
1 answer
3k views

Cannot deserialize instance of currency from VALUE_STRING value 1,9459.1650 or request may be missing a required field

When using Salesforce composite getting this error. How to resolve this? Cannot deserialize instance of currency from VALUE_STRING value 1,9459.1650 or request may be missing a required field Thanks ...
user12277274's user avatar
2 votes
1 answer
2k views

DUPLICATE_VALUE error - Composite REST API by External Id

I'm trying to upsert a record using an external Id with composite API. my external Id is (External ID) (Unique Case Insensitive) - to be precise - I created this field only with the external Id ...
Salvation's user avatar
  • 1,199
1 vote
1 answer
1k views

No reference record id found in composite request

I have a method (shown below in Python) that tries to insert or update 3 related records based on various criteria via composite REST API. I figure out whether each should be posted or patched and if ...
sFishman's user avatar
0 votes
1 answer
1k views

Issue while trying to using composite with PATCH with REST API

I am trying to using REST API with composite and it is failing with this error "Cannot deserialize instance of from VALUE_STRING value XXXXXXX or request may be missing a required field" ...
user7194270's user avatar
0 votes
2 answers
2k views

Composite or Graph API - deleting multiple records based on external Id

I've tried to leverage the new Composite Graph API to delete records for which I only know the external Id. I've tried 2 ways and both of which have failed Method 1: In a single request: a subrequest ...
Gab's user avatar
  • 1
3 votes
1 answer
2k views

Reference lookup external Id when inserting records in composite API call

I am trying to insert standard Account records at the same time as child records (designed by relation Related_Person_Account_Relations__r). I am using the Composite tree Account endpoint (/services/...
Pierrot's user avatar
  • 73
1 vote
0 answers
222 views

Malformed query when creating and then looking up `ContentDocumentLink` via the new Composite Graph API

With the new Composite Graph API (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_graph_introduction.htm) we are trying to create a ContentVersion, ...
zaitsman's user avatar
  • 1,950
1 vote
0 answers
270 views

Unable to use reference to collection element in composite request

I'm unable to use reference to collection element in composite request. I get References an invalid Datatype in composite request error even though it's certainly String type. My request { "...
Danny Torpedo's user avatar
0 votes
0 answers
296 views

how can use Composite API to external API

Here is the scenario i am using https://jsonplaceholder.typicode/users and https://jsonplaceholder.typicode/albums, i want to call make composite call so that i can make both call in one go, which ...
jks's user avatar
  • 168
2 votes
1 answer
747 views

Submitting a Lead through the Composite endpoint of the REST API is not triggering the correct Lead assignment rule

Update: The original question was missing some crucial details which were responsible for the issue, so they have been added in and are marked as part of the update. Original Question I'm working on ...
Ferugi's user avatar
  • 21
1 vote
1 answer
343 views

Delete EventRelation also delete Event when using DELETE request with sObject Collections

I am getting an issue that when i use DELETE request with sObject Collections, to delete an EventRelation, it also delete the main event. DELETE /vXX.X/composite/sobjects?ids=recordId,recordId An ...
nlonguit's user avatar
9 votes
1 answer
8k views

REST API composite query: How do I use the result of a query subrequest in the referenceId of another subrequest?

I am using Salesforce's REST API to (1) retrieve a list of object IDs according to a query, then (2) retrieve the records that correlate to those IDs. I am familiar with the Salesforce composite ...
kyoshioka's user avatar
0 votes
1 answer
1k views

Create Account and Contact at the same time with Bulk API

I'd like to create an account and then a contact in the same call using bulk api. I've used composite api calls to create an account and contact in the same API request. I would now like to do the ...
Ankur22's user avatar
1 vote
1 answer
5k views

SObjectCollection in Composite request limits

According to the composite API documentation, "You can have up to 25 subrequests in a single call. Up to 5 of these subrequests can be query operations, including Query, QueryAll, and “Query More” ...
FizzBuzz's user avatar
  • 123
1 vote
1 answer
1k views

What is performance gain of using Composite API over Custom Apex REST API?

I want to know whether using Salesforce Composite API will give me any performance gain or not in my scenario. I am not expert in Salesforce and don't know much about Composite API. So, before I move ...
rakesh's user avatar
  • 57
0 votes
1 answer
643 views

Invalid entity type provided in the request on composite/tree/customObject

I'm trying to receive a POST call with multiple records of a custom object. I don't know if that's the best choice but i'm using /services/data/v47.0/composite/tree/CSVEnergyLead__c/ When i try to do ...
Héctor Cervera Panella's user avatar
0 votes
2 answers
839 views

Composite REST Resource Not Found

I created a composite REST to insert opportunity for existing account, but all the GET method return error resource not found.. someone help { "allOrNone" : true, "compositeRequest" : [{ "method" ...
Wen Kwang's user avatar
0 votes
1 answer
150 views

How to limit response from Attachment endpoint using SOQL (LIMIT not working)

We're working on a data driven application at the moment and are attempting to return a list of Attachment Id's. Right now our SOQL query is effectively: SELECT Id FROM Attachment WHERE ...
Michael Smith's user avatar
1 vote
1 answer
1k views

Difference between Batch and Sobject Collection composite resources

How are these two Composite API's different? From the documentation, with Batch, 25 unrelated subrequests can be passed into a single Batch Composite API and with Collections, it is 200. Both the API'...
SF Learner's user avatar
  • 1,037
1 vote
0 answers
98 views

Using composite API is it possible to pass all Id's from a GET operation to another GET operation without knowing how many objects are being returned? [duplicate]

With composite we can use the results from a previous operation in the next operation by using the @{ref.records[0].} syntax as so: { "compositeRequest": [ { "method": "GET", "url": "/...
guydoingsalesforce's user avatar
4 votes
1 answer
2k views

Multiple REST requests in parallel?

Can we make request to Salesforce REST API's (i.e. insert or even composite) in parallel? If yes, is there a total number of requests we can make in any given time?
Deployment Failure's user avatar
6 votes
1 answer
8k views

Can you upsert using Composite SObject Tree?

As the title suggests, using the Composite SOjbect Tree request, can you upsert records using External IDs?
Deployment Failure's user avatar
5 votes
2 answers
2k views

Composite API: Create Person Account and Community User in a single call

Background I'm currently trying to create a User and PersonAccount at the same time. In order to do that I send the following Payload to the composite API Endpoint: { "compositeRequest":[ ...
Christian Deckert's user avatar
4 votes
1 answer
470 views

How Composite subrequests count toward ConnectAPI limits

I´m using Salesforce batch composite API { "batchRequests" : [ { "method" : "PATCH", "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ", "richInput" : {"Name" : "NewName"} },{ ...
Enry's user avatar
  • 3,736
0 votes
2 answers
3k views

Rest API Composite - Error 302

I am using Composite API to get the opportunity record but facing 302 error { "compositeRequest" : [ { "method" : "GET", "url" : "/services/data/v42.0/query/?q=select+id,...
Lavanya Sanathkumar's user avatar