Questions tagged [composite]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
4 answers
219 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 ...
0 votes
0 answers
63 views

Can one use allOrNone and collateSubrequests options with the composite sObject tree api?

And if not, how do allOrNone and collation apply by default to the multiple sObjects an an sObject tree POST?
1 vote
1 answer
162 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=...
  • 23
0 votes
0 answers
73 views

Query a lot of ids with rest/composite API?

We got an external system that needs to query for a subset of our accounts in Salesforce and get their respective ids using an external id. What is the optimal way of retrieving ~2000 salesforce ids ...
  • 691
1 vote
1 answer
124 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 ...
  • 11
1 vote
2 answers
367 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 ...
2 votes
2 answers
130 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 ...
  • 5,062
1 vote
0 answers
218 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 ...
  • 51
0 votes
1 answer
410 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'...
2 votes
0 answers
234 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 ...
0 votes
1 answer
195 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 ...
  • 5,062
3 votes
1 answer
661 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 ...
  • 41
0 votes
1 answer
462 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|...
0 votes
1 answer
135 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(...
  • 1,476
3 votes
0 answers
943 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 ...
  • 33
2 votes
1 answer
1k 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 ...
2 votes
1 answer
778 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 ...
  • 995
1 vote
1 answer
503 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 ...
0 votes
1 answer
353 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" ...
0 votes
2 answers
1k 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 ...
  • 1
3 votes
1 answer
817 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/...
  • 73
1 vote
0 answers
155 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, ...
  • 1,726
1 vote
0 answers
149 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 { "...
0 votes
0 answers
152 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 ...
  • 148
2 votes
1 answer
362 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 ...
  • 21
1 vote
1 answer
138 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 ...
8 votes
1 answer
4k 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 ...
0 votes
1 answer
798 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 ...
1 vote
1 answer
2k 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” ...
  • 123
1 vote
1 answer
996 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 ...
  • 57
0 votes
1 answer
431 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 ...
0 votes
2 answers
482 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" ...
0 votes
1 answer
112 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 ...
1 vote
1 answer
737 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'...
  • 1,007
1 vote
0 answers
84 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": "/...
4 votes
1 answer
1k 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?
6 votes
1 answer
5k 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?
5 votes
2 answers
1k 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":[ ...
4 votes
1 answer
268 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"} },{ ...
  • 3,667
1 vote
1 answer
1k views

How do I use parameterized search API with POST, to search for multiple values

I need to remotely query salesforce for 1000 records using REST, via POST (I can't be passing my external IDs over a GET query: they'd get logged in salesforce's web log files bad practice). Using ...
  • 126
0 votes
2 answers
1k 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,...