We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [api]

An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Connect unsubscribes from custom preference centre to all subscribers in marketing cloud?

How do we go about reflecting the subscriber status that is recorded within our sales cloud data from a custom preference centre to our all subscribers list in marketing cloud? I understand this can ...
0
votes
0answers
24 views

Multiple callouts dependant on each other in an InvocableMethod

I have an InvocableMethod apex function being called from Flow in which I make a total of 8 Web Callouts. They are all dependant on each other - so web callout 2 uses params returned by web callout 1 ...
1
vote
1answer
34 views

Using API call in SSJS

I would like to know if we can do an API call Using SSJS. My need is to extract data from a data extension and target an end point using API call. The SSJS is unfortunlly not documented very well. I ...
2
votes
0answers
39 views

Using External API to generate unique link invitation [on hold]

Before anything, this questions is from a beginner in the API environment, so any feedback is greatly welcome. I have a request to create an invitation URL for customers to leave a service review on ...
0
votes
1answer
24 views

Not able to view attachment in salesforce, when uploaded through Multipart Rest API

Below is the code which I'm trying to insert attachment through API not sure what is wrong, when I try to open 'Failed to load pdf' error comes or if I send image type file then that also doesn't open ...
0
votes
0answers
22 views

Is there any documentation regarding Marketing Cloud API Limits? [duplicate]

I can't find information regarding MC API call limits. Can someone share with me more knowledge regarding this topic?
0
votes
0answers
17 views

how to write a Bulk API REST and expose to web service? [on hold]

I have written a standard REST API class to insert and upsert multiple records. but I am trying to make bulk API call through postman in JSON format. here is my code for standard REST API, please ...
0
votes
0answers
13 views

Is it Possible to insert Files from VF Page using Connect APIs?

I know attachments can insert through connect API. What about Files ? I have heapsize issues while insert an document with size of 5 mb Here is My Controller to Insert a file @AuraEnabled public ...
0
votes
1answer
20 views

API access without username and password

I'm writing a simple nodejs application that signs in to the api with a username, password and security token, obtains an access token which is used to make api calls. Basically, the app is ready for ...
3
votes
1answer
33 views

Does the latest API on classes,triggers,and components provide a performance benefit over older APIs?

My thought is "no", but wanted to see if anyone had any information on this. I would assume the versions simply control how you can interact with the features in Salesforce (ex. methods you can use, ...
-1
votes
1answer
32 views

Unreachable Statement

I am new to Apex and am trying to update/insert values on an account record based on the response from the REST callout. I am receiving the Unreachable statement error. The goal is that whenever a ...
1
vote
1answer
27 views

Retrieve Subscriber list using soap api in ampscript in cloud pages

Ampscript code which need to be converted to Soap API in Cloud page : %%[ SET @rr_1=CreateObject("RetrieveRequest") SetObjectProperty(@rr_1,"ObjectType","Subscriber") AddObjectArrayItem(@rr_1,"...
0
votes
1answer
24 views

How to prevent users to use non registered connected apps

There are many web applications that connect to Salesforce with OAuth without configure a connected app (e.g. onegraph). How can we prevent users to connect such an application?
0
votes
1answer
77 views

How do I go about adapting / updating this API trigger to work on both record Insert and update? (Currently it only works on record creation)

I'm just getting to grips with Apex and trying to get an API working with Open Weather Map API. Currently, the API Trigger I use only runs on record creation and it works great. But, I would also like ...
2
votes
0answers
26 views

Lightning Web Component Bad Request after lots successful calls

We have a community custom page developed using LWC to save order. Users sign in, arrive at this page and input your order. There is some apex classes being called from Lightning web component for ...
1
vote
1answer
64 views

Is it possible to create Script Activities through Marketing Cloud API?

I am developing an application to interact with our Marketing Cloud and I would like to be able to create custom Script Activities(containing SSJS API calls)through the API for each campaign so I can ...
0
votes
1answer
45 views

How do I use REST API on a Trigger to populate account fields

I'm new to working with API's and code in general, I have been challenged to create an API to collect data to input into Salesforce records, this will be invoked by a trigger. Currently, I'm running ...
1
vote
1answer
36 views

Can SalesForce federated search be used in conjunction with content indexed in Elasticsearch?

Disclaimer: I don't work within SalesForce at all, but I am being asked to research some capabilities. I apologize for the lack of SF knowledge; this is an exploratory question. Need: We have a ...
2
votes
2answers
52 views

Interaction Studio APIs

I'm looking for Interaction Studio API documentation. What I'm trying to achieve is to create an email which will call API to get the next best actions recommended by Interaction Studio. Thank you for ...
0
votes
1answer
33 views

Remove the “__c” from custom field API name

I've created a custom object in Salesforce with a number of custom fields. Is there any way to remove the "__c" from the API names of those custom fields?
2
votes
1answer
72 views

How to stop Code executing once I catch an exception?

I am attempting to display an error message on a VF page if I get a time out error from an api call. I am using try catch, to get to the exception, but I would like to stop further code execution ...
0
votes
1answer
36 views

Is there a way to Retrieve the ID of an Automation Instance via API?

As far as I know the only way to link directly to a specific automation is with the Automation Instance ID (ex. https://mc.exacttarget.com/AutomationStudioFuel3/?hub=1#Instance/...
0
votes
1answer
30 views

Tooling API response, how to print in log?

I’m trying to print (system.debug) the response returned from tooling API but the debug is not displaying anything. So, I was wondering if the code below is correct. HttpRequest req = new HttpRequest(...
0
votes
0answers
72 views

How do I populate Salesforce records using REST API to collect data for updating

I'm new to working with API's and code in general, I have been challenged to create an invocable Apex class that calls a rest API to collect data to input into the Salesforce record that invoked the ...
0
votes
0answers
14 views

Querying using the Tooling API

I'm looking for a App that provides functionality similar to that of the Chrome extension - Salesforce Inspector. The key thing is that it can access the Tooling API. I could use the DevConsole... ...
0
votes
0answers
32 views

Limitation of Lightning Data Service

I'm reseaching about LWC-OSS and Lightning Data Service. https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.data one of the advantage of LWC-OSS is selectable platform, ...
0
votes
1answer
40 views

How can I handle in Apex if a new Apex Job is enqueued

I would like to know if there is a way to handle the creation of a new Apex Job inserted the Flex Queue, since the object AsyncApexJob is not supported in Triggers. I was also considering handling an ...
0
votes
0answers
18 views

Multiple sequential calls to API [duplicate]

I am having trouble figuring out a way to make multiple calls in order to an external API. The task is currently successfully working using javascript but I need it to work via apex for a large (200 -...
1
vote
1answer
75 views

Excel download from API

I'm trying to create a Lightning component that uses a button to make an API call. The response is in Content Disposition form that returns an Excel file. I'd like to be able to have the Excel file ...
1
vote
1answer
122 views

When to use Slots vs Public Properties vs Getter Properties in LWC exactly?

I am learning LWC and I understood the concept of Slots & Public Properties. But I am not clear regarding when, in which conditions should we use Slots, Public Properties (@api) and Getter ...
2
votes
1answer
94 views

API User Access to Enhanced Notes (ContentNote) External Object

Summary: Org 1 wants to be able to access data that lives in Org 2. For most use cases, we have this figured out using the Salesforce Connect Cross-Org Adapter. However, there is a specific need for ...
0
votes
1answer
73 views

REST API error: Primary key '(primarykey)' does not exists

I am trying to upsert a row into a triggered send data extension with a synchronous call, but I am receiving the following error message: { "message": "Primary key 'Email' does not exist.", "...
0
votes
0answers
21 views

Rest Composite Resource

I try to insert a parent record with own child records using an external id (Serial__c field), but I receive this error: "statusCode": "INVALID_FIELD", "message": "Cannot reference a foreign key ...
0
votes
1answer
26 views

How to present user friendly message when API request setTimeout is exceeded?

I am performing a call from Salesforce to the DWH. Rarely, I would exceed the 120000 time limit, but when we do, the user would be presented with a default apex error. I would like to capture that and ...
3
votes
1answer
46 views

Oauth2 redirect_uri_mismatch except that it matches exactly

So I created a new Connected App in Salesforce - in a sandbox environment. In the app's settings I enabled OAuth with Full access and set the Callback URI to https://test.mydomain.com/tools/...
0
votes
1answer
32 views

How to monitor API requests by user / connected app?

We have clients that access Salesforce API to write data and read data using the salesforce standard APIs. How do monitor the traffic, logs for these API calls? I'm also looking for ways to know the ...
1
vote
0answers
30 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?

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": "/...
2
votes
0answers
23 views

LWC - Retrieving WAVE Dataset information

I'm trying to make a callout to /services/data/v45.0/wave/datasets in a lightning web component. I can successfully make the callout for the running user in apex using UserInfo.getSessionId() but ...
0
votes
1answer
45 views

Calling REST APIs from PHP with curl

I've successfully received an access token thru the API, but no matter what I do I keep getting this "INVALID_SESSION_ID". Does this mean the access key is invalid? I've tried lots of suggestions from ...
0
votes
1answer
25 views

Where get the WSDL for standards methods

I would like to know where I can get the WSDL for standards methods for one object. I mean, I would like to know how I can get the WSDL for the standards methods for the order object (CRUD). If I ...
0
votes
0answers
28 views

simple_salesforce bulk insert - Duplicate Id error

I am using the Python package simple_salesforce to bulk insert instances of a custom object. The custom object has Account Id as a foreign key, which I am inserting during the bulk insert. I'm seeing ...
0
votes
0answers
42 views

FuelSDK C# API Permission Failed

Currently using the latest FuelSDK from Nuget. Creating the client as such: var parameters = new NameValueCollection { { "clientId", ...
0
votes
0answers
54 views

How to match ID:s in Journey builder when new versions are created

I have created a custom component for our journeys and a tool that gets Journey Builder metadata using REST API. When I create new Journey and activate it, Journey Builder REST and the custom ...
0
votes
2answers
27 views

Test Method Fail on Apex class with Meta Object

I am writing a simple api callout for Tsheets, and its working just fine, now when writing the test class, its failing on the line "object results = Meta.get('results')". The error is: System....
0
votes
0answers
22 views

error“:”Unprocessable Entity“,”message“:”Server could not parse JSON"

I'm having with JSON parsing when I send PUT request via APEX, I create variable for the body and put in req_put.setBody(data_comment) and get the error error":"Unprocessable Entity","message":"...
0
votes
0answers
18 views

dw.io.XMLStreamWriter vs dw.io.FileWriter in SFCC

Is it a good idea to use the dw.io.FileWriter instead of the dw.io.XMLStreamWriter to write to an xml file? What are the reasons which would make me to prefer the dw.io.XMLStreamWriter over the dw.io....
1
vote
1answer
49 views

Calling REST APIs from .NET

I have written a tool to get the OAuth JWT Token Bearer from salesforce but do not know what to do next to get my data. The examples in salesforce look easy but they are using curl and I do not know ...
0
votes
0answers
29 views

Send Opportunity records and related files to Google drive

I want to run a trigger that runs on after insert and after update on opportunity fetch the opportunities data and related files and send it to Google drive. Is it possible to do it via apex code? ...
1
vote
1answer
44 views

How to add Salesforce Id field for records that I am trying to update?

I am trying to update and insert (upsert) a bunch of records into Salesforce. The records are in a json file on my hard-drive. The records are inserted but if they already exist, they need me to ...
0
votes
1answer
44 views

What should be my POST URL format be

I'm new to APIs and i am going through the trailhead to obtain tokens/ add a contact to my subscriber list... I'm using Postman and trying to add a URL Should i select POST from drop down and the ...