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
28 views

Accessing HTML content from the email using REST API endpoint

Using the REST API I am trying to extract the HTML content of an email. Endpoint URL : https://SUBDOMAIN.rest.marketingcloudapis.com/asset/v1/content/assets/{{asset_id}} The above URL returns a ...
user avatar
  • 1
0 votes
2 answers
28 views

An invalid security token was provided - How to get support

I have a number of clients who use our integration with Salesforce Marketing Cloud. When things go astray it is quite difficult to resolve the issue as I have no access to the clients account. We use ...
user avatar
  • 1
0 votes
1 answer
33 views

this.template.querySelector(...).handleUpdateCase().then is not a function

Hello, I develop a parent LWC which calls a method from a child LWC. Unfortunately, I get this error message: this.template.querySelector(...).handleUpdateCase().then is not a function This is the ...
user avatar
  • 617
0 votes
1 answer
33 views

'Bad Request' error while sending Soap API to update the query activity

I'm using the Soap API to Update the Query activity. It works fine with a simple query, but when the query contains the special characters(&, (, ),-) mentioned below it gives the 'Bad Request' ...
user avatar
0 votes
1 answer
35 views

400 Bad request for concurrent 10 sessions hitting REST API from Informatica

I have an Informatica integration workflow processing around 200 or 100 records each session for 10 sessions concurrently to REST API (Salesforce). It first authorizes using connected app details (...
user avatar
  • 9
0 votes
1 answer
37 views

How to deserialize this to get only the value 3.2

I have the Wrapper class, and the testwrapper class, but in my callout class i cant get it to only get out the value: 3.2 this the is api url: https://data.ssb.no/api/v0/no/table/11117 This is the ...
user avatar
0 votes
1 answer
34 views

LWC - How to send the recordId to the controller

I'm trying to pass the recordId to the controller so I can interact with the person account to send the data. The problem I found was that recordId was not sending its data correctly to the controller....
user avatar
  • 99
2 votes
1 answer
37 views

Automated bulk refresh of filtered DEs - API or data filters?

I work for an organization with a very decentralized model, and we have 25-30 departments/teams sending out of SFMC. Each of these teams has their own set of filtered DEs (probably 30-50 per team), ...
user avatar
  • 21
0 votes
0 answers
16 views

Is there a Public Link Sharing list?

New to Salesforce administration, and just found out that there is an option to create a public link for files. Is there a way to see all public links created in the instance I manage just like in ...
user avatar
0 votes
0 answers
29 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
17 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
58 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
22 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
1 vote
3 answers
64 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
  • 43
1 vote
0 answers
37 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
0 votes
1 answer
39 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
79 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,516
0 votes
0 answers
11 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
0 votes
1 answer
40 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
41 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
67 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
132 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,966
0 votes
0 answers
45 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
18 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
30 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
29 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
53 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
66 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
52 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
  • 13
0 votes
0 answers
43 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
34 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
122 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
20 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
32 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
46 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
90 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
12 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
117 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
33 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
130 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
97 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
89 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
82 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
23 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
44 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
324 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
13 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
37 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
229 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,196

1
2 3 4 5
46