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,475
questions
0
votes
0
answers
15
views
Generating and Signing JWT for OKTA API call
I have been working on this for forever now.
Need: Call "...oktapreview.com/oauth2/v1/token" to receive a token for use in future calls. I am able to do this with postman just fine, trying ...
1
vote
1
answer
38
views
Salesforce Account Merge Trigger Execution in Bulk Scenarios
I came across the information regarding the execution order of triggers during the merging of Salesforce accounts, as discussed in this SF Stack Exchange thread: merge-trigger-execution-order.
The ...
1
vote
1
answer
29
views
LWC Invalid Mutation error when copying data from a @api property
I am passing data from the flow to the lwc component, making a copy of it and then adding a new key-value pair to each item in the array. The below code does not produce any errors but it doesn't work ...
-1
votes
1
answer
38
views
Show custom error message instead of 'Internal Server Error' in postman
Is there any way in apex to show custom error message like 'Invalid Parameter' instead of 'Internal Server Error' when wrong header parameter is passed in postman. I tried using 'throw new exception' ...
0
votes
0
answers
32
views
Create and populate custom object in Salesforce
I have built a custom survey system, and I would like to see the option on saving the results in Salesforce, on a custom object. In general, the object will have the following fields:
Start date (...
0
votes
1
answer
38
views
Dynamic lightning-button-menu causing infinite loop
I have a lightning-button-menu in my lwc whos options are dynamic based on each record displayed, based on an change data capture its possible that the options will change when the user is viewing (...
-1
votes
0
answers
17
views
Flow not updating from API inserted field
I have a flow which triggers when a date field is populated or updated. It will trigger when:
I update and save manually
When I bulk update from data loader io
When I update using Zapier
However, it ...
-1
votes
1
answer
33
views
Salesforce Custom Field APi
I have created a new field in Salesforce on Order Product called 'Delivery Mode'. The API name is 'Delivery_Mode__c'.
I use this API in integration to an ERP but it is giving me an error.
The error is:...
-1
votes
0
answers
24
views
Unique clicks from all emails with api [closed]
I am trying to understand which endpoint and parameters I need to use in order to retrieve the click activity of all sent emails within a specific folder (category) in Email Studio. This information ...
-2
votes
1
answer
24
views
Error 400 and Error 401
good day to all the users
This is my issue, i have 2 environments SO this environments need to send data from sandbox to an app
I insert the data with anonymous Window
For the 1 environment when I ...
-1
votes
0
answers
37
views
Get list of all api clients from my org
We are migrating to hyperforce and one of the requirements is to check which api clients not using SNI(server name indication) and will get TLS handshake error so what is api client and api endpoint ...
0
votes
1
answer
52
views
Downloading a file via REST API
I need to download files with the API, using now
data/v59.0/sobjects/ContentVersion/{contentVersion}/VersionData
but
it's returning the entire file as application/octetstream but without a Content-...
0
votes
0
answers
91
views
Preparing for Hyperforce Migration
My Salesforce org will be migrating to hyperforce. In order to do that there are a few things Saleforce wants us to do. I am not at all familiar with the following:
Look for reference here : https://...
3
votes
1
answer
129
views
SOSL Find query not returning Standard Profiles, only Custom
Hello!
I have a lookup component that uses a dynamic query based around FIND. It works great except when querying Standard Profiles. If I search for profiles, only custom profiles are returned.
...
0
votes
0
answers
46
views
How to enable Torch in Barcode scanner API in LWC?
Using the Barcode Scanner API in Salesforce, is there a way to enable Torch for scanning during night time?
There doesn't seem to be an option for it in BarcodeScannerOptions.
I tried using an iframe ...
0
votes
0
answers
38
views
How to design Salesforce API Integration license user READ ONLY Object access of standard objects (like account, Opportunity)?
I have create a new dedicated integration user with this new license "Salesforce Integration". Based on my requirements, The Integration user is need to have a READ ONLY level object access ...
0
votes
1
answer
48
views
Salesforce integration user subscription
I am currently developing integration with Salesforce which would sync data (apply Create, Update, Delete, Get operations on entity items) on Salesforce side. As licenses are not cheap and i would ...
0
votes
0
answers
35
views
Named Credential Auth 2.0 JWT Token giving empty error: "Unable to complete the JWT token exchange. Error: . Error description: ."
My JWT token is retrieved using only the following parameters in a json body:
{
"username":"blabla",
"password":"blabla"
}
I don't need the standard JWT ...
0
votes
1
answer
207
views
MFA is needed starting Nov 12, 2023
On the 12th of November we will only be able to access Salesforce by confirming the verification through MFA, in our case we are doing it through Okta.
We have a total of 149 users, of which 136 are ...
0
votes
0
answers
14
views
get pending email sends via API
I send out user-initiated emails via the SFMC API's. Is there a way to retrieve the scheduled emails that have not sent yet via an API?
0
votes
1
answer
81
views
Create Apex class using Python
My plan is to create integration in which i need to be able to receive webhooks from salesforce. I already have connected app and access to salesforce API.
I am familiar with the steps i need to do ...
0
votes
2
answers
71
views
Nested query works in salesforce inspector but not in request with query in url
I'am trying to get(request) Accounts with some informations from child called Services__c.
When im performing query in inspector it works fine
SELECT Legal_Name__c, Name, BillingCountry, (SELECT ...
0
votes
2
answers
53
views
Error: Compile Error: Variable is not visible: MSTimeCalculator_CC.priorityMap at line 5
When I try to save the code (API version 58.0), I keep getting a compile error stating:
Error: Compile Error: Variable is not visible: MSTimeCalculator_CC.priorityMap at line 5:13
Below the apex class:...
0
votes
0
answers
23
views
I want to update part of an email in SFMC using restAPI
I am looking at updating only part of an existing email using the following Rest API call.
https://et_subdomain.rest.marketingcloudapis.com/asset/v1/content/assets/
I am able to update all the content ...
0
votes
1
answer
66
views
Accessing Contact data of Sync Data Extensions in Journey Builder
I would like to use the Contact.WebCart data from the Marketing Cloud Connect sync Data Extension in an Update Contact Activity in Journey Builder.
I'm trying this but not having any luck.
{{Contact....
0
votes
0
answers
23
views
I have a installed package Edit Quotas version 2.5 which is not working for new forecast type to edit quotas of a user
Installed Package Information:
Package Name: Edit Quotas
Version: 2.5
Publisher: Salesforce.com
Package Description:
It is used to add or change quotas for forecast types.
Issue :
This package only ...
0
votes
1
answer
69
views
Is there way to copy journey via API?
I've wondered if there is a way to copy journey via API.
I already asked to Salesforce Support and Support told me there isn't API for this.
but I've wondered if there is an unofficial API.
Thanks in ...
0
votes
0
answers
61
views
Enabling Salesforce API Integration permission set issue
I added a new user for API integration purpose, i gave him Salesforce Integration licence and the default Salesforce API Only System Integrations profile (Following the principle of least privilege)
...
3
votes
0
answers
46
views
Mismatched LInkedEntityId on ContentDocumentLinks
I'm trying to link attachment files to Salesforce EmailMessages. Steps so far:
Upload attachment file by posting to /services/data/v58.0/sobjects/ContentVersion.
Query ContentVersion table to get ...
0
votes
1
answer
23
views
Updating Lightning EmailTemplates using REST api
I'm trying to replace links within email templates created by the lightning builder programmatically.
I've managed to get the sobject ID of an email template using the REST api, but when I try to ...
0
votes
1
answer
60
views
Getting data extension eventDefinitionKey and Id
I'm creating a journey through the journey REST API. I want to add a data extension to that journey. To add a specific data extension, as far as I can see, I need the data extensions ...
0
votes
0
answers
29
views
Calling Heroku Postgres Stored Procedure from APEX class
I'm attempting at using Heroku as an External data source for my Salesforce ORG and run process heavy transformation tasks.
I have created my Postgres DB on Heroku, Installed the Salesforce connector ...
-1
votes
1
answer
85
views
I need to get the data in a trigger after an api callout with @Future methode
I need to get the fields from the api and update them in the salesforce object , so i need to callout an api . Here is my trigger
trigger getEntrepriseData on Account (before insert,before update) {
...
0
votes
2
answers
64
views
I can't access my sandbox - API only user activated by accident
"I was in my sandbox, and I was modifying a permission set when I accidentally enabled User Only API. Now I can't access my sandbox. How can I resolve this issue?"
0
votes
1
answer
339
views
How to add newline/linebreak in Quip Spreadsheet?
I'm adding in data to my spreadsheet using:
client.add_to_spreadsheet(thread_id,*df)
... and it works, except it has ignored all my attempts to set any newlines. I've tried '\n', 'chr(10)', '<br&...
0
votes
0
answers
17
views
How to sent ContentVersion's VersionData through API? [duplicate]
I am trying to send a pdf file attached to a record of custom object to an external system. I am using ContentDocumentLink and ContentVersion to get the file in apex and make a api call. File is ...
0
votes
0
answers
76
views
Auth API calls resulting in 400 bad requests when POSTing multipart/form-data payloads with SSJS
I'm trying to make Auth API calls to an external API Endpoint from Marketing Cloud using SSJS or AMPScript but I am getting 400 bad request errors for these calls. In talks with a contact from the ...
-1
votes
1
answer
46
views
sending user-initiated email via API
I have a user-initiated email send definition set up in SFMC. Which API endpoint or customized envelope do I use to initiate an actual send-out using that send definition?
0
votes
1
answer
583
views
Permission Set for Integration User profile: The user license doesn't allow the permission: View All Activities
I created
a new profile based on the new Salesforce Integration license,
created a new user (Portal API User) using this license,
have set the Permission Set License Assignment on this User to ...
0
votes
0
answers
58
views
Issue with adding / updating a record into a data extension via cloud page
I am trying to add / update a test record in a data extension from a cloud page but I keep getting 500 - Internal server error
I have looked at the online resources and some answers here as well ...
0
votes
0
answers
28
views
Push operation using spread operator is not working in Lightning web component
I have a child lwc component which is getting array-data from a parent lwc component.
In my child component, I have the following code
console.log('this.selectedItems kkkkkkkk ' + JSON.stringify(...
-1
votes
1
answer
170
views
Is WAF implemented for Salesforce APIs?
Our client's cybersecurity team is inquiring if Salesforce implements WAF (web application firewall) for its standard APIs.
We have a salesforce application using Sales, Service and Experience cloud.
...
1
vote
1
answer
40
views
Creating SSO enabled AccountUser via API
I'm creating AccountUsers using the SFMC API, however I'm not able to configure the SSO settings. I'm trying to add the following block to the SOAP create request. It should be feasible, as it is ...
0
votes
0
answers
34
views
Platform event - not accessible through LMA
On one of the org. I got the below error from the Platform event
Access to entity 'Log__e' denied: Entity is not api accessible common.exception.ApiException: Access to entity 'Log__e' denied'
This ...
0
votes
0
answers
69
views
API call for OWD (Organization-Wide Defaults) Sharing Settings objects
How can I get only the objects with share permissions?
Only the objects I see in the table of Setup -> Security -> Sharing Settings.
Entity Definition gives all the objects with any filters.
1
vote
0
answers
83
views
Error creating ActionCadence via Salesforce API
I'm looking to create an ActionCadence (Salesforce Cadence) using the object reference documentation. It states that in version 58, you should be able to "create()"
Based on the error code I ...
-1
votes
1
answer
222
views
How to download a PDF file which is present in Salesforce using Rest Callout
I have to create a RestResource apex class which should let the user to download a pdf from salesforce.
I have written the following code, but I am not sure how to proceed further to let file ...
0
votes
0
answers
28
views
Metadata API - AnalyticsSettings - enableReportHideXlsExportPref
I call Metadata API - AnalyticsSettings - to check the key: enableReportHideXlsExportPref.
For some reason, When I changed to value in the UI checkbox, it doesn't influence the API value.
Can ...
1
vote
1
answer
234
views
Restrict access to specific fields when using Salesforce Integration User Licence on Standard objects (like Contacts)
By default, the Salesforce Integration User Licence doesn't provide access to a variety of standard objects (including Contacts and Accounts).
You can extend the access for an integration to those ...
0
votes
0
answers
147
views
MC Personalization: Purchase Event triggers and is shown in Event Stream but LTV remains the same
I am beginning to set up Marketing Cloud Personalization (former Interaction Studio) and now have to fire purchase Events through the Event API.
Currently, the detection of Purchase Events works and ...