Questions tagged [composite]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
31 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/...
1
vote
0answers
29 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
vote
0answers
23 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
0answers
37 views

REST API Composite - parse soql to json

I'm trying to send the results obtained in a query to another org using REST Api and composite. I was able to make it work if I hardcoded a dummy json into the code, but I'm not being able to build ...
0
votes
0answers
26 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 ...
2
votes
1answer
73 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 ...
1
vote
1answer
20 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 ...
4
votes
1answer
409 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
1answer
137 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
1answer
65 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” ...
0
votes
0answers
283 views

How to use Composite Request to insert ContentVersion?

I am using the composite REST API through a java interface to create files on salesforce. The problem is when I try to open in preview or download the files, the files are corrupt or cannot be opened. ...
1
vote
1answer
342 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 ...
0
votes
1answer
127 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
1answer
119 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
1answer
51 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
1answer
178 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
vote
0answers
67 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": "/...
3
votes
1answer
324 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?
5
votes
1answer
2k 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?
4
votes
2answers
443 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
1answer
86 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"} },{ ...
1
vote
1answer
351 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 ...
0
votes
2answers
383 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,...