New answers tagged

0

If you're still looking - enosix has an app specifically for integrating CPQ to SAP ERP for just this scenario - https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FvIwdUAF. Disclaimer - I work for enosix.


0

I recommend adding the below check RestRequest request = RestContext.request; Map requestHeaders = request.headers; if (requestHeaders.containsKey('Sfdc-Stack-Depth') && '1'.equals(requestHeaders.get('Sfdc-Stack-Depth'))){ System.debug('Do not calllout as it will cause a callout loop error'); } As described here, The SFDC_STACK_DEPTH header is ...


0

I've encountered this, but different scenario. I have a setup where we have two orgs connected via an integration tool. In addition to these two SF orgs, we are connected to an external service. A - SF Org 1 B - SF Org 2 C - 3rd party service B is connected to A & C directly. To save licensing costs if A wants to talk to C it must go through B. This ...


1

You can solve this by placing the second API call in an implements Queueable class. It doesn't work for @future.


1

You can use the composite sobject rows if you do not have a large payload of the order of 100K https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections.htm A single request can take 200 records so you will group the requests in this approach. Another way is to use the new graph composite api. This api ...


0

If using the REST API in python, you can use the method query_more()


0

There are fields missing on your request. The 'classification' and the 'dataExtension'. Despite the default classification is transactional on the samples it is explicitly added. You can find a working sample on this question.


0

You need the Manage Multi-Factor Authentication in API permission to access this object. (Note that multi-factor authentication was formerly called two-factor authentication.)


0

Here is the coding what i used to solve that, I used contentversion object in salesforce. Attachment attach = [SELECT Id, Name, Body, ContentType, ParentId From Attachment LIMIT 1]; ContentVersion cv = new ContentVersion(); cv.Title = 'Test Document'; cv.PathOnClient = 'TestDocument.pdf'; cv.VersionData = attach.body; //cv.IsMajorVersion = true; ...


2

I tried exceeding the daily limit in my developer org. So, when the daily API limits of the organization were exceeded, I tried hitting the API again. I got the error Total request limit exceeded with 403 status code which is also correct as per the screenshot attached below from Rest API Guide.


1

The callback URL is the URL that should receive the access/refresh tokens. This will be wherever you deployed your code to, for example https://www.example.com/oauth2/callback. Since you're in control of your own website, the URL is whatever you want it to be.


3

The API Request Limits documentation goes into a bit more detail Limits and allocations are enforced against the aggregate of all API calls made to the org in a 24-hour period. Limits and allocations are not on a per-user basis. Example API Usage Metering Calculations The following examples illustrate API usage metering calculations for several scenarios. ...


1

The API call limit is an org-wide limit. It scales with your user license count, but is not applied on a per-user basis. Now the question is there a limit to the number of api calls that a user can make in 24 hours No, the API call limit is a bucket for all users.


2

After some more digging around in the Installed Package screen I looked at the Access tab and saw that each of the Child Business Units weren't Enabled. Solution: I had to individually enable each Child Business unit that I wanted to access


0

We went with SAML SSO, Azure App registration (when publishing API), Auth Provider in SF (to get token for use with API), and Named Creds (to tie it all together): https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app https://help.salesforce.com/articleView?id=sso_provider_microsoft.htm&type=5


0

If you have a manged package then try to add /services/apexrest/NameSpace/helloWorld


0

All I know from your post is that you are connecting to Trello somehow and manipulating data from that connection in your Salesforce org. If you are trying to keep data around for later use after your future calls resolve, you may want to look at the platform cache feature in salesforce. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/...


2

at the moment there is no such standard REST API. Here is a Clone API Call idea, but it is almost dead. You can build your own REST API resource, using your own custom Apex clone code, or take a look at the Deep Clone question here


0

Turns out the issue is that the names not sent were in a holding pattern due to "CONTACT DELETE" process. Therefore, our trigger was always fine. Thank you for the feedback to help troubleshoot.


1

To test this method simply invoke the target method (httpPutMethod) with appropriate values and check the results: @IsTest public class ApiTest { @IsTest static void testHttpPutApi() { List<wrapper> result = httpPutApi.httpPutMethod(new Map<String, String>{ '100007' => '100008', '100008' =&...


1

There is a hidden field _CustomObjectKey which is used in AmpScript, this field may also be requested for DataExtensionObject: Thanks to Jonas Lamberty for a hint! Request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <fueloauth>secret</fueloauth> </soap:Header> <...


0

With the Composite Rest API you can technically retrieve up to 60k records only two request! This is a bit of a cheat in that it relies on "guessing" the nextRecordsUrl of the query and only works without child relationships. In those cases, you can still leverage Composite API to reliably pull down 10k records per query. Doing so would look ...


0

The chatter documentation above sent me in the wrong direction. You can do this via the standard REST API via multi-part request. Here's an example of what the actual code looks like to create ContentVersion.


Top 50 recent answers are included