Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
8 views

Quip Automation API for programmatically filtering spreadsheet data

I am using the quip automation api and it's going well with the documentation provided: 1) https://quip.com/dev/automation/documentation/current, 2) https://quip.com/dev/automation/documentation/all. ...
user avatar
0 votes
0 answers
8 views

Use SwitchServer for dynamic url changes for Chat rest API call

I am using SwitchServer to get the newURL for Chat API endpoint. But the response newUrl is returned for requests to Visitor resources if the Live Agent instance URL is not correct for the ...
user avatar
0 votes
0 answers
36 views

Getting 404 Error when trying to create a Lead object in SalesForce API

I'm sending a POST request from a connected app to try and create a Lead object in my company's dashboard. Here is the URL that I'm using to post: https://${MyOrganization'sBaseURL}.my.salesforce.com/...
user avatar
  • 1
1 vote
1 answer
19 views

how to get the package related information(namespace, version number) from installation url

I am doing automation on package installation, now I am able to install the package from apex using metadata service class by passing package namespace and version number, but i need to pass the ...
user avatar
0 votes
3 answers
33 views

Get values from nested JSON dictionaries in Apex

I'm trying to make use of the Jira Rest API from within Salesforce. I am somewhat useless with Java, so hopefully someone can point me in the right direction. I can use the following Apex to get an ...
user avatar
  • 21
-3 votes
0 answers
28 views

How to pass Json request in post method in apex class , I need to provide field values in my request [closed]

I need to pass field values in the request body of my post method. below mentioned in setbody is the json format of request which I have pasted from one of the example. How can I pass request in such ...
user avatar
0 votes
0 answers
17 views

How to PDF response received from apex rest callout in LWC

My apex is making a rest callout with bearer token and getting a pdf in response as it's body. How can I show that pdf in LWC component ? PDF response starts like this - "%PDF-1.4 %���� 1 0 obj&...
user avatar
0 votes
0 answers
27 views

Callout failed for invocable action in flow

I am trying to send an API request to the external service using flow in salesforce but when I debug my flow it returns the below error Error Occurred: Callout failed for invocable action testing3....
user avatar
1 vote
0 answers
21 views

SystemModStamp not updated after field type changed

After changing the type of a field from "Rich Text" to "Plain Text", Salesforce automatically stripped out the HTML tags used to style the values (e.g. from <p>Test value<...
user avatar
-1 votes
0 answers
13 views

Is it possible to have SFDC send a message to a webhook when a field is added/removed from a list of objects?

I'd like to kick off some downstream 'stuff' whenever a field is added or removed from an object (for example, if someone adds a new field to the Lead object). I have a webhook I'd like to trigger on ...
user avatar
  • 1
-4 votes
0 answers
34 views

Unable to get response for fetch method

Unable to get response any response for below post request triggerd, can any one please help on this import { LightningElement, wire,track,api } from 'lwc'; import getClientId from '@salesforce/apex/...
user avatar
  • 9
-2 votes
0 answers
48 views

Getting Error Status=Unauthorized, StatusCode=500 [duplicate]

I am trying to establish the connection from salesforce to SAP via middleware, My requirement is to show SAP inventory in salesforce. before that i wanted to test the connection. While sending out to ...
user avatar
  • 1
0 votes
1 answer
29 views

expose a soap api with 40 parameters

I need to expose an API Soap with 40 parameters. Do you have an idea how to do that because SF give me an error when i generate Apex Class from WSDL "Invalid number of parameters exceeds: 32"...
user avatar
  • 3
0 votes
1 answer
50 views

OAuth 2.0 Web Server Flow and CORS problem

I try to communicate with the API Salesforce. First, I call the URL: https://login.salesforce.com/services/oauth2/authorize. It gives me a code in the callback URL I gave on parameters. Then, I try to ...
user avatar
  • 3,518
0 votes
0 answers
10 views

When do SFMC outbound API calls from within ampScript execute? [duplicate]

I know that we can make calls to web services outside of SFMC using methods mentioned here: SFMC outbound API calls I want to know if I add these API calls to the ampScript, when exactly do they ...
user avatar
  • 11
0 votes
1 answer
32 views

Deserialize json into Apex map [duplicate]

I am hitting an external API with request body as below { "recordId1":{ "manufacturer": "ABC", "modelNo": "1234", "...
user avatar
0 votes
1 answer
36 views

How to get the Apex Character Limit via Api/SOQL

basically trying to grab this metric, without having to go into salesforce? Had a look at /services/data/vxx.x/limits Didnt see it here. Also looked at tooling api and whats available via /services/...
user avatar
1 vote
0 answers
30 views

Get current location details from reverse Geocoding

I have succeeded in getting the Latitude and longitude of my current location. Then I need to use the lat and long to get the physical address of that particular location. later retrieve the physical ...
user avatar
  • 9
5 votes
1 answer
98 views

Legacy API usage and event log

Salesforce sent an email "because you're an admin of an org that is actively using the legacy API endpoints". While this mentions only version 7.0 through 20.0 I only found version 27.0 in ...
user avatar
  • 1,930
0 votes
0 answers
43 views

"Dependant class invalid needs recompilation" error after upgrading to API version 53

I have upgrade some classes in my org to version 53, while deployment i get the error " Dependant class is invalid needs recompilation". As per the Salesforce article I have tried compiling ...
user avatar
1 vote
1 answer
17 views

Salesforce: Best approach to create opportunities via API without Salesforce Account ID

We have the following situation: We are planning to integrate our 3rd party Webshop with Salesforce. We are going to use a middleware. Each order from the webshop should create an opportunity in ...
user avatar
1 vote
1 answer
24 views

sprinkledata: How to connect using Salesforce connector

This might be very specific to tool sprinkledata. But I have tried everything. Only these data needs to be filled in and I tried everything. On Server Location* : I tried Instance Name, test, whole ...
user avatar
0 votes
0 answers
27 views

Web app and two Salesforce orgs working as IDP and SP

Currently we have two Salesforce orgs, one of them is IDP, and second SP. Community Users login to Org 1 and use community resources on Org 2. Now we would like to create external WebApp. Between Web ...
user avatar
  • 335
0 votes
1 answer
36 views

How can I get key prefixes of each object from a Salesforce Instance with pythons simple_salesforce API?

I want to extract keys for each Salesforce object (including custom) from a Salesforce environment via the simple_salesforce python library. That is, I want a pandas dataframe that looks as follows: ...
user avatar
  • 11
0 votes
0 answers
55 views

Error too many rows 50001 in a custom Rest API

I have a custom rest API that when is called from a third party system (this third party system calls me providing a country code like UK, DE, US... and some other parameters) I filter account object ...
user avatar
  • 1
0 votes
0 answers
21 views

How to send an AL3 file (octet-stream/binary) using Rest Apex? [duplicate]

I've been trying to send an AL3 file (a custom type of file) to a Rest API. The API requires to receive the file in the form-data, I've tried many different codes but haven't been able to send the ...
user avatar
0 votes
1 answer
35 views

I try to do callout to my apex rest service from first to second dev org, but got CalloutException

String endPoint = 'https://wise-otter-ngj5eu-dev-ed.salesforce.com/services/apexrest/v1/getAccounts/'; Http h2 = new Http(); HttpRequest req1 = new HttpRequest(); req1.setHeader('Authorization','...
user avatar
  • 3
0 votes
0 answers
26 views

How can we add dynamic data into our Push messages that is send via the API

We want to send Push messages via the API (/push/v1/messageContact/xxxxxxx/send). The Push messages contain dynamic data like timestamps. So for example we have the following message: 'We will arrive ...
user avatar
  • 103
0 votes
0 answers
12 views

How can we add dynamic data into our SMS messages that is send via the API

We want to send SMS messages via the API (/sms/v1/messageContact/XXXXXX/send). The SMS messages contain dynamic data like timestamps. So for example we have the following message: 'We will arrive ...
user avatar
  • 103
1 vote
2 answers
65 views

API for disable inactive users in Marketing Cloud

I wanted to know if there is any API that allows me to deactivate users in marketing cloud when they have been inactive for 60 days, any information is useful
user avatar
0 votes
0 answers
17 views

Manually uploading .HTML to SFMC content builder disrupts cyrillic-, french- and other characters

As mentioned by title, when I try to upload content to SFMC Content Builder either by; Manually uploading by drag&drop, or Upload with the API The content is created, but when I try to create ...
user avatar
  • 1
1 vote
0 answers
29 views

ConnectedAppPerms

Is it possible to set up a custom profile for a connected app? The objective is to provide a developer external to the org with access to opportunities, and only opportunities via cypress automated ...
user avatar
  • 1,268
0 votes
1 answer
29 views

Test class for MetaDataAPI which adds new values to picklist fields

I have used metadata APIs to create new values to picklist values using apex. But unfortunately, I am not able to understand how to write the test class for the same. Can someone help me This is my ...
user avatar
-2 votes
2 answers
63 views

How to create endpoint url in salesforce org to use in rest resource [closed]

Rest Api. I wanna to create a link to be able to get api calls @RestResource(urlMapping = '/GetByDate/*') global class RetutnLeadsByDateRestResource { @HttpPost global static void ...
user avatar
0 votes
0 answers
11 views

Social Studio - information about API Call for connector with internal system

Are there any API calls for integration from internal system to Social Studio that use the username instead of the internal Social Studio id? If yes, could you please provide an example? Thank you
user avatar
  • 71
0 votes
0 answers
113 views

API callout from aura component using Jquery

We have a API callout from aura component which gets invoked on a button press. Our org has about 150+ users using it. Nowadays , few users are complaining of API not getting called from aura ...
user avatar
  • 332
0 votes
0 answers
32 views

Send email from a Journey when record data was changed

I have a Data Extension that has multiple boolean fields. Records get into this Data Extension through api requests, and the data in them can also change through api requests. If the first field is ...
user avatar
  • 13
0 votes
0 answers
74 views

Connected App Error - { "error_description": "invalid_grant", "error_description": "expired access/refresh token" }

I've have successfully created a connected app using our sandbox account by following this Enable oauth settings api integration, However when I try to request for access_token I'm getting the follow ...
user avatar
  • 1
-1 votes
1 answer
65 views

How can i get the Session Settings and Session Timeout from Salesforce using Rest call?

Is there a Rest API call I can make to get the Session Timeout Value under Session Settings in Salesforce? If I retrieve back the UserInfo in the JSON there are URL's: "urls": { "...
user avatar
  • 9
1 vote
1 answer
58 views

How can i Query a Child's Parent's Parent in SOQL

I have Objects in the following heirarchy: Account -> Opportunity ->Project Manager__c ->Project Services__c Project Services object is tied to Project Manager by ...
user avatar
  • 125
0 votes
1 answer
58 views

apex solution to invoke web service

I am trying to set up my first apex trigger/class but i'm having trouble interpreting and applying the docs on my usecase. Usecase: I'm trying to invoke a rest service through an apex class whenever ...
user avatar
  • 113
0 votes
1 answer
22 views

Associate a publication list with an email sent via API

I'm trying to send an email via API, but I really need to apply a publication list. I know it's possible to do this using Journey Builder, but it would be much better if I could do all the ...
user avatar
2 votes
0 answers
41 views

How to handle triggers with dependent objects?

I have a problem regarding triggers on objects that effect other objects. When a Contact is saved on Salesforce, in my case it also saves an Affiliation. I have a trigger on each object that when ...
user avatar
0 votes
1 answer
163 views

How to use Next JS to send POST requests to Salesforce Marketing Cloud API

The problem I'm building a site on Next.JS to collect emails and I need to send the emails to a Salesforce Marketing Cloud data extension via the API. I first need to request an SFMC token then send ...
user avatar
0 votes
0 answers
12 views

Create JSON Response in SFMC? [duplicate]

Is it possible to create a JSON payload and return it to Mulesoft? Example: Mule sends a request to my Cloud Page The CP performs some logic and if successful, I return a JSON body. Some reasons for ...
user avatar
0 votes
2 answers
32 views

If I would reset security token, then other developers using that account will lost connection?

We have one account in Salesforce which is used for development by 3 developers If I would reset the security token (in order to connect with environment via IDE), then all other developers would lose ...
user avatar
0 votes
1 answer
125 views

Flow error "getToken (Action) - We can't find an action with the name and action type that you specified."

I installed this package in a sandbox and it works great. I have a flow call an action which this package created to do call out to an api. I created a changeset to copy the flow to another sandbox. I ...
user avatar
  • 1,206
1 vote
1 answer
64 views

Error Country after enabling state and country picklist

Since I have enabled state and country picklist I get the following error: Update failed. First exception on row 0 with id 0013O00000rrYAFQA2; first error: FIELD_INTEGRITY_EXCEPTION, There's a ...
user avatar
  • 2,068
0 votes
1 answer
72 views

Salesforce APEX Crypto hash vs Javascript Crypto hash

Trying to generate a hash of a HMAC Sring in Salesforce. The hash generated using APEX in Salesforce is not identical when compared to a hash generated by JS code on the same message. Am I doing ...
user avatar
  • 1
2 votes
0 answers
40 views

How can you build detokenization of data coming into Salesforce via a custom API integration?

Background: We are building an API integration fully custom between Salesforce and an internal resource to return PII data onto our Case record on page load. The internal resource will return ...
user avatar

1
2 3 4 5
46