Questions tagged [composite]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
87 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 ...
user avatar
2 votes
2 answers
54 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 ...
user avatar
  • 4,747
1 vote
0 answers
60 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 ...
user avatar
  • 51
0 votes
0 answers
99 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'...
user avatar
2 votes
0 answers
71 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 ...
user avatar
0 votes
1 answer
98 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 ...
user avatar
  • 4,747
3 votes
1 answer
354 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 ...
user avatar
  • 31
0 votes
1 answer
182 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|...
user avatar
0 votes
1 answer
65 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(...
user avatar
  • 1,420
3 votes
0 answers
557 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 ...
user avatar
  • 33
2 votes
1 answer
673 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 ...
user avatar
2 votes
1 answer
437 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 ...
user avatar
  • 963
1 vote
1 answer
259 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 ...
user avatar
0 votes
1 answer
102 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" ...
user avatar
0 votes
2 answers
704 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 ...
user avatar
  • 1
2 votes
1 answer
495 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/...
user avatar
  • 43
1 vote
0 answers
108 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, ...
user avatar
  • 1,598
1 vote
0 answers
73 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 { "...
user avatar
0 votes
0 answers
98 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 ...
user avatar
  • 104
2 votes
1 answer
252 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 ...
user avatar
  • 21
1 vote
1 answer
81 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 ...
user avatar
7 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
616 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 ...
user avatar
1 vote
1 answer
1k 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” ...
user avatar
  • 123
1 vote
1 answer
848 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 ...
user avatar
  • 57
0 votes
1 answer
346 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 ...
user avatar
0 votes
2 answers
386 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" ...
user avatar
0 votes
1 answer
95 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 ...
user avatar
1 vote
1 answer
513 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'...
user avatar
1 vote
0 answers
77 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": "/...
user avatar
3 votes
1 answer
987 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?
user avatar
6 votes
1 answer
4k 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?
user avatar
5 votes
2 answers
878 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":[ ...
user avatar
4 votes
1 answer
202 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"} },{ ...
user avatar
  • 3,607
1 vote
1 answer
780 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 ...
user avatar
  • 106
0 votes
2 answers
931 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,...
user avatar