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,501
questions
0
votes
1
answer
49
views
Programmatic Access to Critical Updates
My company has a large number of orgs that we need/want to be able to manage the status of Critical Updates across. Ideally, we'd like to be able to do this using some kind of script or CLI so our ...
0
votes
0
answers
76
views
JSforce login to salesforce from Chrome Extension [duplicate]
My goal is to listen for Steaming API events from Chrome Extension.
In order to do that, obviously i must log in first and get a token.
As embarrassing as it is, i am stuck at User Login phase.
I have ...
0
votes
1
answer
41
views
reading api fields
I have an api response as follows
[
{
"providerInfo": {
"pcd_eligible": false,
"tiered_plan": true,
"tiers": {
"...
0
votes
0
answers
40
views
Api Integration Issue
I have created an api integration in salesforce. From client's website a request will send to Salesforce in form of JSON. This will create record in Salesforce. Sometimes multiple requests are sent ...
1
vote
1
answer
948
views
how to get occupied storage info of objects in apex
this image is from user storage and I want to access it object wise to create a chart from apex code
0
votes
0
answers
130
views
Script.Util.HttpRequest DELETE method not working
I am using the following code to submit an HTTP delete request. I have this function for the Delete API call but it's not working. I cannot get the error message when trying it in a CloudPage, it ...
2
votes
0
answers
65
views
Lead object marked as Private org wide default but SOQL returns Public for DefaultLeadAccess
I have modified the Org wide default for Lead to Private.
However, when I execute the SOQL to get org wide defaults - Select DefaultAccountAccess, DefaultLeadAccess From Organization, I am getting ...
1
vote
1
answer
918
views
Customer community license API limits
Our clients want to use our managed package Lightning aura component to view some records. That component has a button like PAY NOW or DOWNLOAD or CANCEL which involves an API call to external system. ...
0
votes
0
answers
426
views
Upload a pdf document to Google docs using APEX
Trying to load pdf document to Google Docs, by using the Google API . so the issue I am facing that the pdf file was uploaded on docs but when we download it and open it shows an error:-Failed to load ...
0
votes
1
answer
1k
views
Get Content Block HTML via REST API
I am looking to get the content (html/ampscript) value of content blocks programmatically from Salesforce Marketing Cloud.
I successfully make a call to /v2/token with my clientid and secret with the ...
0
votes
1
answer
147
views
How to create visible (FLS and in all Layouts) custom field via API
When I create a custom field via Tooling API
post '{"Metadata":{"type":"Number","description":"test","inlineHelpText":"","...
0
votes
1
answer
720
views
Sending PDF file from Salesforce to XERO, but it's not happening
I want to send PDF file which is generated by VF page from Salesforce to XERO.
But I'm trying to send but it's not happening
XERO syntax, it receives like below format
POST /api.xro/2.0/Receipts/...
0
votes
1
answer
916
views
VSCode Salesforce API/sfdx mass create custom formula fields
I'm looking for a way to custom create a placeholder formula field. SOAP doesn't allow formula field.
I see a few ways online using force.com IDE, but now I'm trying it out on VSCode and I'm kind of ...
0
votes
1
answer
103
views
Accepting a callback via REST from ScheduleOnce [duplicate]
I've never done anything with APIs before so this question is going to be badly asked.
We use a online scheduling tool called ScheduleOnce. That tool has the ability to utilize webhooks, per this ...
0
votes
0
answers
142
views
Schedule an Email and create send definition via REST API
I have an email in "Content Builder" (This email created using the API).
This email should be sent via API.
How can I create an API Call:
create a send definition.
Schedule an Email and ...
1
vote
1
answer
530
views
Add an image to content builder via API
I want to add an image to content builder via api and retrieve the image published Url. I suspect I need to use the assets/v1/content/asset but will I be using POST OR GET command ?
1
vote
2
answers
7k
views
What is Salesforce Daily api limit per user per 24 hours?
According to
Salesforce Documentation,
Salesforce Unlimited editions have a limit of 5,000 API calls Per License Type, per 24 hours and the total API calls per 24 hours are:
100,000 + (number of ...
0
votes
1
answer
54
views
Allow other developers to access our Salesforce data via API
We would like other developers in our company (non salesforce users) to be able to access our Salesforce data via an API. What is the best way to allow them to do this? Thank you
1
vote
1
answer
35
views
How to add record type to accounts coming in from an API connection using Triggers
I am trying to add a record type ID to Accounts that are coming in from an API connection. Below is the trigger I am using but the trigger doesn't seem to be firing/doing anything.
trigger ...
1
vote
1
answer
79
views
integration with website with search
I have a task to integrate our SF org with this website: https://www.nsopw.gov/ , in which you can simply search somebody's name and find out of whether or not they are a sex offender. We would just ...
0
votes
1
answer
587
views
How can I receive an API Response (Post Request) encoded as a Byte Array
I am posting data to an endpoint and in getting an excel (xlsx) file back.
More details:
I am required to post a JSON string to an endpoint (this is working fine).
In turn, I get back an XLXS file in ...
2
votes
1
answer
1k
views
Is there any OpenAPI or Swagger definitions for Marketing Cloud?
I would like to know if there are any OpenAPI or Swagger definitions available for Marketing Cloud API either REST or SOAP.
Thanks
0
votes
1
answer
730
views
Import of unsubscribers to Marketing Cloud - what's the correct way to do it?
We have a client Migrating from Zoho to Marketing Cloud.
They haven't sent an email yet from Marketing Cloud, but they already have the MC Connector set up,
with 600K+ contacts syncing from Salesforce....
0
votes
0
answers
218
views
MC Payload creation using variable to invoke REST API
We want to invoke MC Campaign Creation API from SSJS. Campaign data to be created in MC we are fetching from external data source.
While creating Campaign REST API Payload to invoke MC API from SSJS, ...
1
vote
0
answers
84
views
Adding Role To a Marketing Cloud User via API [duplicate]
Is there a way to add marketing cloud roles to a user via SOAP or REST API?
0
votes
1
answer
2k
views
How to reset Security Token of API Only User? [duplicate]
How to reset Security Token of API Only User ?
I created a new user in salesforce exclusively for integration purpose. Got the welcome email,Verified Account and changed password.
Prior to this, I ...
0
votes
1
answer
214
views
Help with JSON.deserializeUntyped
I am parsing JSON that is coming back from REST callout, and when running, it is throwing this error: attemp to de-reference null object. The issue seems to be with how I am parsing the JSON, but I ...
1
vote
0
answers
77
views
Does Declarative Amazon Signatue Version 4 Named Credential Work At All With External Services and Flow
Can anyone confirm if they have EVER used declarative AWS Signature Version 4 as a Named Credential with External Services and Flow in Salesforce for ANY reason? Not Apex Classes to set these. A ...
0
votes
0
answers
49
views
Shortening URLs in the SMS being sent from Service Cloud [duplicate]
We are sending SMS messages from Service cloud using Transactional API(Marketing Cloud).We were planning to send attachments but transactional API does not support attachments hence we have decided to ...
1
vote
1
answer
575
views
How to check API navigation pattern in VF page?(Summer 20 Update)
Based on below link, I want to check existing VF page in my organization which use API navigation pattern.
https://releasenotes.docs.salesforce.com/en-us/summer20/release-notes/rn_vf_navigation_calls....
2
votes
1
answer
2k
views
SSJS HTTP.Post - Why are the contents of the Response Array in string format?
I am using the SSJS Core Library HTTP.Post function to retrieve an SFMC authentication token. I have followed ssjs boilerplate from Zuzanna here: https://gist.github.com/zuzannamj/...
0
votes
1
answer
446
views
Two triggered sends (if based) on one cloud page
I have a page for subscribers.
The intent is to have new subscribers inserted into a DE and have a triggered send to send a welcome mail. But on the other hand, if someone is already a subscriber we ...
0
votes
1
answer
2k
views
Sending Attachments in Emails via Transactional API
We have been sending emails and SMSes from Service Cloud through marketing Cloud.We are just using SFMC as a gateway and using its Transactional API to send the emails and SMSes.We are building the ...
1
vote
2
answers
891
views
Retrieve Ordered Automation Rows in WSProxy Retrieve
I've written a script with WSProxy that retrieves all Automations (Programs) in a Marketing Cloud business unit. Then, I retrieve all runs (AutomationInstance) of that automation and get the status of ...
0
votes
2
answers
1k
views
Contacts API in Salesforce Marketing Cloud
I am trying to use the below api and payload for updating the mobile opt in preference in Salesforce, but I am getting a validation error. Can someone help?
PATCH : https://YOUR_SUBDOMAIN.rest....
0
votes
1
answer
257
views
Sobject tree parent field update
I have a child record called Order, Account is Parent of Order. I am trying to insert a Order via sObject tree and at the same time I am trying to update its parent field but it throwing an error, any ...
0
votes
1
answer
149
views
SFMC JB Custom Activity | Access inArgs from activity backend to send in POST to another endpoint
I need to learn how to work some data in my custom activity backend. - The issue is that I'm not sure how to grab the data in backend once activity has posted data to my execute endpoint.
My backend ...
0
votes
0
answers
829
views
LWC Cannot call a public method in child component
We're having issues calling a public (@api) method in child component from the parent. We are doing everything as in the guides - the child has an annotated method:
@api publicMethod(param) {
...
1
vote
1
answer
741
views
Timeout HTTP.Get
Im trying to hit a GET request prior to sending the email, the API is known to lag. It is helpful when we get a timely response but I want it to timeout and send the email anyway if we don't get a ...
1
vote
0
answers
89
views
How do I know which SObject the PageName from LightningUsageByPageMetrics refers to?
I'm trying to map the PageName property from the LightningUsageByPageMetric object back to Standard Objects. E.g. a PageName = "Contact Record" is presumably associated to the Contact ...
1
vote
1
answer
329
views
FlowAttributeChangeEvent Data Overridden by getter method
I have a LWC component that exposes a variable called testData in lightning__FlowScreen. The testData property is used in screen to display text.
<targetConfig targets="lightning__FlowScreen&...
1
vote
1
answer
305
views
What are some challenges with building web apps using Salesforce as a back-end? [closed]
My company is developing a custom web app (PHP/React) that relies on a lot of data coming from Salesforce. The app is targeting external customers and not existing Salesforce users.
Our initial plan ...
0
votes
1
answer
293
views
CloudCraze - Not able to place order using API [closed]
We are looking for standard/custom API place multiple order line items for the same product on the basis of different delivery/request dates. So far we have found CartItemGroup is the kind of relative ...
1
vote
2
answers
1k
views
Winter 21 Release and API Version availability
Is API Version 50.0 for Winter '21 release available? I am in a pre-release developer edition org and I can't see the version 50.0
1
vote
1
answer
708
views
Get Request Callout behaving as Post - How to set requestBody on GET Request
I have to make an external API Callout(Salesforce to other system) of Type - GET. Also, my request will contain requestBody. So far, it seems like it is assuming it to be a POST Request as soon as I ...
3
votes
3
answers
2k
views
SSO: Azure AD idp + external API Callout from Apex?
Question:
When a user is signed into SF with Azure AD identity provider (SSO), we want to send the current identity (in the form of a Saml assertion, bearer token, etc?) along with the external API ...
1
vote
1
answer
711
views
How to resolve SOQL query error: ''Nesting of semi join sub-selects is not supported"
Here is my SOQL query below in Alteryx application where I have to extract the Id from Contact object which has two level sub-selects. I could only make the SOQL query to work for 1 level of subselect ...
1
vote
0
answers
3k
views
Getting a 404 error while trying to connect backend Api from the Heroku deployed Angular Api
I have successfully deployed my angular app onto Heroku. I have implemented the proxy.conf.json file to connect to the Backend API (which is also deployed in Heroku and its a Java JAX-RS REST API) and ...
0
votes
1
answer
2k
views
Scope by User - Settings from Sales Cloud MC Connector
community,
I would like to know what are the settings that need to be applied to the Sales/Service Cloud side to correctly use the functionalities of Scope by User regarding the connectivity between ...
0
votes
2
answers
856
views
Tracking Extract via SOAP API - where to find exported file?
I'm trying to perform a Tracking Extract via the SOAP API and all seems fine from the API response. However, I'm not sure where I should find the file (in this case shorttimespan.zip). Should it be in ...