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.
2,541
questions
1
vote
0
answers
32
views
Trying to use a Global Connected App and JWT Flow to Get an Access Token in Other Salesforce Orgs
The method that I am trying:
Create a connected app in some namespaced org, enable it to use the JWT flow. The policy is set for all users can self-authorize. I upload a certificate to this app.
In ...
0
votes
1
answer
21
views
Receiving an error UNSUPPORTED_API_VERSION: Invalid Api version specified on URL inside Jenkins using sf project deploy start command
Receiving an error UNSUPPORTED_API_VERSION: Invalid Api version specified on URL inside Jenkins using sf project deploy start command
sh "sf project deploy start --ignore-conflicts --source-dir ...
1
vote
0
answers
27
views
How to manipulate release version while creating a new package version?
We are creating a new package version. Package details is as follows. Note that "Release version" is "61.0"
Name Value
─────────────────────...
0
votes
0
answers
20
views
Salesforce Edge Network Recently Implemented in UAT - Broke Our Apex-Based REST Endpoint. Issue Related to "Host" Header Value?
Struggling to troubleshoot...
Our full-sandbox UAT instance was recently upgraded to the "Salesforce Edge Network", resulting in one of our apex-based REST services breaking. This service ...
-1
votes
1
answer
92
views
HTML output on JWT request
I am trying to acquire a token to work with the Salesforce API, but there is something wrong, and I don't understand what exactly. The JWT token was made with the specification https://help.salesforce....
0
votes
0
answers
17
views
How to use Named Credential when apiKey is part of endpoint? [duplicate]
We are using the HERE api to retrieve geolocations. We had the API Key hardcoded, and yes, of course this is wrong. We want instead use a Named Credential.
Using below endpoint works:
String address = ...
-1
votes
1
answer
69
views
How can I upload a PDF file to an external service with an HTTP callout? [closed]
We have a REST API that accepts PDF files and will analyze them and give insight about the PDF. I have added an Action Button if the user presses that button it will take all the PDF attachments and ...
0
votes
0
answers
18
views
Create Service Report FSL does not include Technician signature (API)
I am trying to use the CreateServiceReport API call - https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_sr.htm
My code base is same as ...
0
votes
1
answer
35
views
How to fix querying on "Name" Table?
My API request to salesforce for fetching columns from table Name is failing with:
entity type Name does not support query
The query that I am trying to do is like: SELECT FirstName from Name where ...
1
vote
2
answers
40
views
LWC Get Data From Descendants - Events vs Public API
In the Call Methods on Child Components documentation, it says:
To communicate up the containment hierarchy, fire an event in a child
component and handle it in an owner or container component. See
...
0
votes
0
answers
29
views
How do I stop a record update if an API callout fails?
So I have a record, it's got a bunch of info inside of it that needs to be synced with an external database via an API call.
I've built a pretty solid means of making that api call, which sends the ...
0
votes
1
answer
31
views
Salesforce Marketing Cloud - Add Email & SMS subscriber into a list
I am trying to add Email & SMS subscriber into a list, I've done it for Email alone but now I was asked to integrate for SMS Marketing as well.
<header>
<fueloauth>...
0
votes
1
answer
43
views
Creating Data extension field through SSJS (through API calling)
I'm now testing a new method to create a data extension field automatically through REST API calling,referring to this developer DOC
It's operated by POST method, and I think I wrote all of the ...
0
votes
0
answers
33
views
Inquiry on Salesforce App Security and Credentials Management
I am working on securing our company's Salesforce instance. To manage this, I am using API calls with a Salesforce app connection. However, I now need to identify:
Which apps have the consumer_key and ...
1
vote
0
answers
68
views
Apex SDK for Slack: Has Salesforce given up?
I am looking for any guidance/roadmap/articles on Slack Apex SDK. It looks like there are little updates to this project after 2022. There are very few examples available online:
https://developer....
1
vote
1
answer
43
views
Multiple Outbound Calls resulting in errors
Within in our SF organization, I need to send API calls to another platform when certain records are updated in Salesforce. I've successfully created triggers and apex classes (utilizing @future) to ...
0
votes
0
answers
56
views
Update a bitly link with API using AMPScript in SMS
We are using custom back-half links in Bitly to redirect to a CloudPage for capturing clicks in SMS campaigns. However, we encountered an issue: Bitly only accepts static links. This means that if I ...
0
votes
0
answers
50
views
Custom email routing beyond traditional SMTP server routing
I want to explore ways to optimize our current email-sending process, and I was wondering whether SFMC offers multiple ways to route emails.
I mean to send emails to external systems beyond the ...
0
votes
1
answer
46
views
Salesforce API Error: CANNOT_MODIFY_MANAGED_OBJECT for ValidationRule
I'm encountering an issue modifying a Salesforce Validation Rule via the API. My attempt to update the rule with the ID '03dDn000001evPOIAY' results in the error message:
"Cannot modify managed ...
1
vote
1
answer
68
views
How can I identify which connections or connected apps are using legacy API versions?
I have received an alert from Salesforce stating I'm using a legacy version of REST / SOAP in my org. Is there I can identify which app / service is using an older version?
I have tried following the ...
0
votes
1
answer
41
views
Can we use speech recognition functionality using microsoft-cognitiveservices-speech-sdk in lwc?
I know speech recognition is possible using Web Speech API, just wanted to check if this is possible using microsoft-cognitiveservices-speech-sdk in lightning component?
https://www.npmjs.com/package/...
0
votes
0
answers
24
views
Add Blob to Spreadsheet Cell via Quip Automation API as an Image
I am trying to use the automation api to create a blob of an image file and then add the image to a cell within a spreadsheet.
The documentation specifies that AddBlobToThread API Returns a url that ...
0
votes
0
answers
31
views
REST API - Limit Exception converting string to Blob [duplicate]
Based on my understanding, any inbound call to Custom REST service built in Salesforce gets heap size of 12 MB as it is considered asynchronous.
Currently, I have below code which when consumers call ...
0
votes
1
answer
77
views
Avoid parent record locking
Our customer are using the standards apis to insert record of different types that have the same parent record.
UPDATE : Two of these records are the detail record of a MDR while the others are linked ...
0
votes
0
answers
38
views
Including a Suppression List in your API Call for MobileConnect
I want to be able to send an SMS via API in MobileConnect. However, I want to include a suppression list. I see how you can do this via JourneyBuilder or Scheduled send, but not via API. Would I just ...
0
votes
1
answer
83
views
Validate an email in Marketing Cloud using APIs
👋
I'm going through this page of the documentation
https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc_rest_address
And it says is for validating an email in such way:
...
1
vote
0
answers
52
views
Get information on SFMC Installed Packages using API?
I am wondering if there is a SOAP API object or REST api calls for the installed package to retreive in Marketing Cloud just to get information about when this installed package is used or triggered ...
0
votes
1
answer
83
views
How to get status of query definition
I want to get the status of a query definition. I am interested in knowing if it ended up in an error or not.
I run query definitions from a script, but I cannot access the information about whether ...
1
vote
0
answers
63
views
Graph api and Flow Triggers
I'm really new to SalesForce api and processes.
My requirement is to update a custom object in SF 'customObject'. The records are logically grouped with a field 'fieldGroup'. After create/update of a ...
0
votes
0
answers
40
views
Create Contacts API payload is not working as expected
I'm having a problem with Create Contacts api payload, i'm sending this specific payload witch can be found in the documentation: https://developer.salesforce.com/docs/marketing/marketing-cloud/...
-1
votes
1
answer
56
views
Is there a way to validate the web app authentication integation on SFMC?
https://${d(
subDomain,
)}.auth.marketingcloudapis.com/v2/authorize?response_type=code&client_id=${d(
clientId,
)}&redirect_uri=${config.sfmc.AltusRedirectUri};
This ...
0
votes
2
answers
459
views
Postman error "unsupported_grant_type"
I'm trying to connect to a developer edition of Salesforce via Postman,
but I keep getting the "unsupported_grant_type" error.
Does anyone know how to fix it?
0
votes
0
answers
47
views
Pardot API V4 returning 302 status code in Production but not Sandbox
I'm using the Pardot API to update prospects, and it works perfectly in the sandbox. However, in production, I get a status code 302 (redirection). I have tested a GET of the instance and that is ...
0
votes
0
answers
71
views
Salesforce REST API: eTag & Last-Modified headers
I am analyzing the behavior of Salesforce public rest API:
sObject describe API is supposed to return metadata about the entity (/services/data/{version}/sobjects/{entityName}/describe)
The response ...
-1
votes
1
answer
77
views
Salesforce Rest API to delete all where
I have a list of custom object records that are related to an account id. I would like to periodically delete all the records with accountId='xyz'.
currently I am doing an SOQL to get all records ...
-1
votes
1
answer
32
views
How to create an Apex Class or Triggers in professional edition + API, already integrate with JIRA
I Want to achieve this automation - When any opportunity goes to Need Analysis stage, then it will automatically create a JIRA ticket on Jira Projects.
For that i need a trigger in professional ...
0
votes
1
answer
44
views
How to ensure API events are processed sequentially
Question: How can we ensure that multiple API events for the same record are processed sequentially and not in parallel.
Background: We are building a securities trading application. The trading ...
0
votes
0
answers
22
views
Invalid ID being shown err_code 16 - Pardot API with Python Requests
I am running into an issue:
pardot_request = r.get(
url= f"https://pi.pardot.com/api/email/version/4/do/stats/id/{account_engagement_id}?format=json",
headers = {
'Pardot-...
-1
votes
1
answer
80
views
Send push notification from SFMC to a 3rd party app
Is it in any way possible to send a push notification from our SFMC instance, to a 3rd party app that we don't have control over?
We can presumably access their API, but can SFMC send a push to an API ...
0
votes
0
answers
36
views
Why recordTypeVisibilities is an empty array in response to /services/data/{version}/tooling/sobjects/Profile/{profile.id}
I have configured several RecordTypes for Account entity and those show up under certain profile:
I am using super user when placing a call:
/services/data/{version}/tooling/sobjects/Profile/{profile....
0
votes
0
answers
35
views
Removing \n from HTML asset retrieved via an API
I'm trying to use cloud page to use API to retrieve the HTML email to display on cloud page. I can get the API to work, but it adds '\n' and \ to my html code that was retrieved, which breaks the ...
1
vote
1
answer
171
views
How to send form-data to WebToLead or WebToCase APIs?
Instead of the usual approach of implementing web-to-lead, I wanted to experiment with doing a POST to the web-to-lead endpoint itself that one can find via the Web-to-Lead Setup option in Salesforce.
...
1
vote
0
answers
242
views
How to migrate successfully from legacy FCM APIs to HTTP v1 in apex?
I have a working functionality for sending push notifications via Firebase (FCM) from apex. But it is legacy now and I need to upgrade to HTTP v1.
Based on the official documentation and the few ...
0
votes
0
answers
83
views
simple_salesforce bulk insert function causing a disconnect error
sf.bulk.object_name.insert(list_of_records,batch_size=100,use_serial=True)
I'm using simple_salesforce to bulk insert records but once in a while it causes this error.
ConnectionError: ('Connection ...
-1
votes
1
answer
125
views
Adding new prospect to a list using API
I am writing some automation in Python to push prospects into a Pardot list. I thought the list endpoint would help me acheive this. But, it only gets the metadata of the list. Is there any endpoint ...
1
vote
0
answers
181
views
Unable to make callouts after Salesforce Instance Refresh. Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"
Over the weekend, Salesforce has refreshed our org instance AP53.
Since then our integration with Equifax is not working.
Whenever we try to make a callout to the Equifax servers, we get the following ...
0
votes
0
answers
64
views
How to Get Session Id for Front Door URL into Scratch Org via API?
After successfully creating a scratch org via API, I am now exploring ways to streamline admin access to this org. My goal is to create a URL that, when clicked, will automatically log the user into ...
0
votes
0
answers
617
views
Authenticated User "Unable to tunnel through Proxy..."
I have a connection between a Dev Box and a Full Box instance. I set up this way:
Fullbox - Connected App
Dev Box
--> Named Credentials Uses Auth provider with login flow on save.
--> Auth. ...
0
votes
0
answers
43
views
How to run ApexBatch with Client Credentials flow
I want to run an ApexBatch that exists in a Salesforce organization from a C# program.
[@RestResource(urlMapping='/BatchAction/*')
Apex specified is ready to go.
Also the connection application is ...
1
vote
1
answer
390
views
How to retrieve the XML Definition of flow provided I have the Id of the flow?
I have used the following query in postman
SELECT Id, ApiName,Label, ProcessType From FlowDefinitionView Where ProcessType = 'flow'
result has given me the Ids of all the flows whose processTypes are ...