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
4
votes
0answers
17 views

How are self referencing formula fields handled using Replication API?

My understanding is that formula fields or rollups are not calculated in the object that is being queried using the Replication API. Is this also the case if the formula field value is calculated from ...
0
votes
0answers
31 views

Making API documentation using swagger

I have written following code in yaml to call Salesforce standard API from swagger. openapi: 3.0.0 info: title: Salesforce Standard API description: Salesforce Standard API version: 1.0.2 ...
0
votes
1answer
25 views

Export file from FTP with API

Does anyone know whether there is a way to connect with SFMC enhanced FTP with API, and export a certain file? It seems like a simple solution, but I am not getting anywhere with the documentation.
0
votes
2answers
33 views

Deserialize an object with an optional field

I am trying to deserialize a request body but need to allow one of the fields to be optional. RequestBody { Decimal someNumber; } RequestBody reqBody = (RequestBody)JSON.deserialize(req....
0
votes
1answer
36 views

Passing property to LWC component

Trying to pass a default value to an @api decorated property, somehow I get undefined variable, here is my code meta.xml <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle ...
0
votes
0answers
18 views

Can we set and get @API value for managed package components?

While we create the managed package and import that with another ORG, we can't pass the dynamically values to that components. in other hand, same will be working as expected with unmanaged package. ...
0
votes
1answer
16 views

How to Make Pardot Authorisation Request?

I have a training org where I'm making API callouts for authorise to the Pardot environement, but recieving the error :- Error Code :- 49 Error :- Access Denied, The details of the API url which I'm ...
1
vote
1answer
26 views

Call Center - Open CTI auth

I'm new to call center so maybe this is a basic question or not very well explained. We have a third party company that needs to use the Open CTI API and connect there System to Salesforce. I gave ...
0
votes
1answer
53 views

Trigger an API call after status change in real-time

Our client would like to manage their opt-outs and -ins in a real-time manner and apply them in their customer database via an API call (most probably REST). So as soon as a subscription status ...
0
votes
0answers
8 views

Social Studio Post Assignment through the API

I have a report in the Analyze section showing me what social media posts were assigned to what agents for follow up. How can I pull this data through the API? I can't find anything in the ...
0
votes
0answers
22 views

Retrieving User from Salesforce failing with 411 error

I'm attempting to retrieve a custom object record by one of it's unique fields using the built in api. For this specific call, my request is is: path: `/services/data/v43.0/sobjects/YTPStudent__c/...
5
votes
1answer
48 views

Get Schema of all sObjects in one Api Call, like Schema Builder

I am building a web tool to get the schema of a particular sObject, or an entire org, and save it as a Json file using the SalesForce Rest API. To do this, I am first getting a list of all the ...
0
votes
0answers
26 views

Salesforce Event Definition key

Our journey logs has inconsistent event Definition key even if the journey configuration and activities are very much similar. Sometimes our log reflects that it is DEAudience, or ContactEvent or ...
0
votes
2answers
47 views

Update a Subscriber using SOAP request, parameters and value not clear

I am using this Marketing Cloud API SOAP request. I have succeeded at a few other SOAP requests but on this one, I don't seem to understand where to put the parameters and their values. The input to ...
0
votes
0answers
54 views

Salesforce will only allow subscription to 1 out of 3 push topics

We have a service that subscribes to three sets of push notifications. When subscribing in sandbox the service is only allowed to subscribe to the first push topic by sales force with the second two ...
0
votes
1answer
52 views

HTTP Response Code when org is in Read-Only Mode

I am working with a client who is having their instance migrated to another pod. As part of our preparations, we want to test how integrations will behave when the org goes into read-only mode. As a ...
0
votes
0answers
48 views

Verifying Marketing Cloud API calls

So I'm new to the Dev. Forums, and trying to learn as much as I can while studying for my MC admin and developer certs, so forgive me if this question isn't clear. In Marketing Cloud we have a lot of ...
0
votes
0answers
26 views

Authenticate to send a GET request to a lighting page [duplicate]

i would like to ask if it is possible to get a token that allows you to receive the html of a lightning or visualforce page given the url. The REST api token doesnt seem to work. For example get the /...
1
vote
0answers
28 views

Adding parameters to SOAP API call from SF by changing WSDL

I am working on an application using zeep and wsdl to call a SOAP api. The wsdl has a function that is pulling ~15 fields from salesforce, which are later written to a csv file (through python). I ...
0
votes
1answer
31 views

Get all open cases from salesforce API

For a dashboard I want to get some basic information about all cases. e.g get all open cases. I did find some api functionality to gather data by id about a single case. https://developer.salesforce....
1
vote
1answer
28 views

SOQL Query With Running Tally or Running Totals

I have a Payments object with dates and corresponding payments. We can query the data via SOQL in our API and the data looks like this: SELECT Date, Amount FROM Payments WHERE CreatedDate>2019-01-...
0
votes
1answer
42 views

Not able to see client id and client secret in the connected app [duplicate]

I have created a connected app with below configuration in Salesforce Developer edition: But not able to see client id and client secret in the app. I tried opening the connected app through Setup->...
1
vote
1answer
29 views

Direct Message Maximum amount of members

I want to be able to send files to a whole bunch of contacts. I want to know, is there a limit to the number of members that can be added into it? ConnectApi.DirectMessageCapabilityInput dmInput = ...
0
votes
2answers
65 views

How to use Promises / synchronize two asynchronous methods in Lightning Web Component(LWC)?

In LWC JS, I am making an external API call-out and an Apex method and accumulating the results. How to synchronizes the process? Example: renderedCallback(){ let a,b; getApiResult().then(...
1
vote
0answers
16 views

Creating product with bundle from api

I'm trying to create a product and bundle with another existing product referring this document. It creates the Bundle1 but doesn't assign to it the specified Product1 as bundle. Any help would be ...
1
vote
0answers
24 views

QueryAllAccounts returns either Parent or Child but not both when querying from Child

Using the SFMC Soap API with QueryAllAccounts on seems to be behaving interestingly at the moment and I'm not sure if just me going crazy or it was always like this. When in the child BU and setting ...
0
votes
0answers
13 views

How to track Pardot Prospect activities through API?

I want to track Prospect activites in Salesforce using API. I would like to have a number of count of email sent to a particular Prospect via Pardot though its API and show them in Salesforce. I'm ...
2
votes
2answers
56 views

LWC @api decoration

Why do I have to decorate private (@track) with @api in this code @api showCart = false; @api showMe() { this.showCart = true; } without @api decoration I've got an error means that 'There is ...
1
vote
1answer
40 views

Getting the filtered data extension associated with a send and it's corresponding definition

I am looking for a way to extract the following information programmatically: For each job ID, what is the corresponding Data Extensions that was used for sending For that data extension, what is ...
1
vote
0answers
28 views

Fill Tasks “Subject” field with API name

I'm creating tasks from an internal tool though a REST integration, and wanted to rely on API names to set Subject values. However the Subject that's input is actually the API name, and not its label....
0
votes
1answer
44 views

Get record Id in Apex class

I have a function that does API callouts. It takes a string as a parameter, which is the record ID. I need a way to make an InvocableMethod so I can call that method with the current record ID from ...
2
votes
1answer
67 views

How to fetch Marketing cloud DataExtention Metadata using API?

How can we fetch the properties of a Marketing cloud Data Extention using it's API. For Example :- there is a Data extention named "ABC" and having feilds(properties) like name(String), age(integer), ...
0
votes
1answer
72 views

REST Method to update the a contacts status in the All Subscribers list

So far I have succeeded at updating a contact's email address using the REST API and this method. The JSON body of my request looks like this: { "contactKey": "[MY_CONTACT_KEY]", "...
2
votes
1answer
69 views

SOAP request sent after receiving the Access Token gives “403 - Forbidden: Access is denied”

I have started communicating with the Marketing Cloud API. I have added a Server-to-Server integration component to our installed packages: Using Postman, and the Authorization Base URL I receive ...
0
votes
0answers
24 views

Added my first package with API Integration Component. How to test an API call (SOAP or REST)? [duplicate]

I am a developer but I admit I am confused by going through the Marketing Cloud API documentation. Inside our Marketing Cloud's installed packages, I created a new package and added an API ...
1
vote
1answer
32 views

CPQ: Generate Quote Documents for more than 25 Quotes

I'm trying to generate Quote Documents for several Quotes simultaneously. We're using a schedule but calling the API and running up against a limit: we can only call the API to create Quote Documents ...
2
votes
1answer
50 views

Connecting to SF server from Postman fails

Trying to connect to Salesforce server using Postman, it was showing below error { "error": "invalid_grant", "error_description": "authentication failure" } Then tried all the options ...
1
vote
1answer
37 views

Receive and handle POST from external server outside of Salesforce [closed]

I am trying to accept a JSON payload that is supposed to create new assets in the Asset sObject. I'm trying to wrap my head around how to expose the API to the server that is sending the POST request. ...
4
votes
2answers
57 views

Is there an API call to check if streaming is enabled for a Real Time Event Monitoring Event (Setup > Platform Tools > Event Manager > Event)?

So as part of the Salesforce Shield release there is a new Salesforce Settings page at "Platform Tools" > "Events" > "Event Manager". As seen in the image above, the Settings page contains a Grid ...
1
vote
1answer
55 views

Updating Notification Email Address in Automation

I have around 100 automations in my business unit. I want to update the error notification email address to my email address for all of them. Is there a way to do it through API or ssjs?
0
votes
0answers
13 views

How to send dynamic(personalization ) content in push notification through api

The below link talks about Push send api , But limited to how we can send personalization string . https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/postMessageContactSendPush....
1
vote
0answers
44 views

Setting a Scheduled Automation to Active with REST API

I can activate scheduled automations through soap but only if their schedule is not already configured. Does anyone know how to activate a scheduled automation through REST API? I think the "isActive" ...
1
vote
0answers
25 views

OCAPI request length restriction

if I send a PATCH request for a customer resource (.../customers/xyz) with the following data: {"birthday":"11.11.1980","email":"max@mustermann.de","first_name":"Max","last_name":"Mustermann","title":...
0
votes
1answer
30 views

Try Method in Debug Window

this is my first post, I don't speak english...ok. I will consume an API and I have this method: public without sharing class BP_ExpiredProductsCtr { public static id accID; public static void ...
1
vote
0answers
47 views

Authenticate Community Users in External Rest API

I have a Community that consumes an external Rest API that requires authentication. For testing purpose, I hardcoded a username and a password in my apex rest callouts in order to be able to consume ...
0
votes
1answer
26 views

Finding details about HTTP error 400

I am trying to implement some functionality with DatedCoversionDate object. Unfortunately it is not possible to change it with DML but there is a way to use API calls. here is an example Http h = ...
0
votes
1answer
50 views

Can't print specific part of JSON using SSJS

I'm trying to retrieve a specific part (attribute Region) of JSON I receive and print it. Apparently, I'm missing something. I would really appreciate your advice. Platform.Load("core","1"); var ip ...
0
votes
0answers
21 views

REST API Callout with Named Credentials not refreshing token?

I am making a call from my org to the REST API of another org to pull in some data from the chatter feed API. I set up a connected app on the org of the API I am using. It is using the OAuth scopes (...
0
votes
1answer
34 views

SetObjectProperty: how to create inline objects

I have the following 'To' object in an API request: "To": { "Address": "email address here", "SubscriberKey": "Subscriber key here", "ContactAttributes": { "...
0
votes
1answer
47 views

flow deployment error about api version

after launching this command from the visual studio code terminal : sfdx force:source:deploy --sourcepath .\force-app\main\default\ --apiversion 47.0 I receive the following errors: force-app\main\...