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
1
vote
0answers
13 views

LWC - Retrieving WAVE Dataset information

I'm trying to make a callout to /services/data/v45.0/wave/datasets in a lightning web component. I can successfully make the callout for the running user in apex using UserInfo.getSessionId() but ...
0
votes
1answer
32 views

Calling REST APIs from PHP with curl

I've successfully received an access token thru the API, but no matter what I do I keep getting this "INVALID_SESSION_ID". Does this mean the access key is invalid? I've tried lots of suggestions from ...
0
votes
1answer
17 views

Where get the WSDL for standards methods

I would like to know where I can get the WSDL for standards methods for one object. I mean, I would like to know how I can get the WSDL for the standards methods for the order object (CRUD). If I ...
0
votes
0answers
19 views

simple_salesforce bulk insert - Duplicate Id error

I am using the Python package simple_salesforce to bulk insert instances of a custom object. The custom object has Account Id as a foreign key, which I am inserting during the bulk insert. I'm seeing ...
0
votes
0answers
31 views

FuelSDK C# API Permission Failed

Currently using the latest FuelSDK from Nuget. Creating the client as such: var parameters = new NameValueCollection { { "clientId", ...
-4
votes
0answers
34 views

Error 401: Unauthorized while getting with JIRA tickets using HttpRequest [on hold]

I'm trying to get JIRA tickets using a HttpRequest and the endpoint is answering with a 401: Unauthorized error. Http http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://...
0
votes
0answers
44 views

How to match ID:s in Journey builder when new versions are created

I have created a custom component for our journeys and a tool that gets Journey Builder metadata using REST API. When I create new Journey and activate it, Journey Builder REST and the custom ...
0
votes
2answers
25 views

Test Method Fail on Apex class with Meta Object

I am writing a simple api callout for Tsheets, and its working just fine, now when writing the test class, its failing on the line "object results = Meta.get('results')". The error is: System....
0
votes
0answers
12 views

error“:”Unprocessable Entity“,”message“:”Server could not parse JSON"

I'm having with JSON parsing when I send PUT request via APEX, I create variable for the body and put in req_put.setBody(data_comment) and get the error error":"Unprocessable Entity","message":"...
0
votes
0answers
12 views

dw.io.XMLStreamWriter vs dw.io.FileWriter in SFCC

Is it a good idea to use the dw.io.FileWriter instead of the dw.io.XMLStreamWriter to write to an xml file? What are the reasons which would make me to prefer the dw.io.XMLStreamWriter over the dw.io....
1
vote
1answer
28 views

Calling REST APIs from .NET

I have written a tool to get the OAuth JWT Token Bearer from salesforce but do not know what to do next to get my data. The examples in salesforce look easy but they are using curl and I do not know ...
0
votes
0answers
18 views

Send Opportunity records and related files to third party website

I want to run a schedulable class that fetches opportunity data and related files/attachments, and are transferred to external website. What I was thinking is to write apex code to fetch the ...
1
vote
1answer
38 views

How to add Salesforce Id field for records that I am trying to update?

I am trying to update and insert (upsert) a bunch of records into Salesforce. The records are in a json file on my hard-drive. The records are inserted but if they already exist, they need me to ...
0
votes
1answer
42 views

What should be my POST URL format be

I'm new to APIs and i am going through the trailhead to obtain tokens/ add a contact to my subscriber list... I'm using Postman and trying to add a URL Should i select POST from drop down and the ...
0
votes
0answers
27 views

Apex controller Attempt to de-reference a null object error!

We've implemented an API using SOAP API, that connects to an external database, which we can search within our Salesforce org. I'm running into an Attempt to de-reference a null object error: Here ...
0
votes
1answer
14 views

SFCC API to remove a product from the product set

Are there any SFCC API to remove a product from the product set? It is a very easy thing to do from BM: just go to the Product Sets tab, select a product set from which to remove, go to Products tab, ...
0
votes
2answers
32 views

API Usage Breakdown?

We are using Lightning and trying to find out if there is a way to see a breakdown of API usage by source. I have heard of a report that can be used, but it doesn't show up in the Administrative ...
1
vote
1answer
38 views

Create a product from code in SFCC

Is it possible to create a product in code in Commerce Cloud?
1
vote
1answer
29 views

SOAP API, wsdl, wsc and class versioning confusion

We are a small team creating an app that integrates with Salesforce (any org). We are trying to clear up some confusion about how the entire versioning system works, so that we can support it long ...
0
votes
0answers
68 views

System.CalloutException: Unable to tunnel through proxy. Proxy returns “HTTP/1.1 503 Service Unavailable” ERROR

I'm trying to make an HTTP Request to other System. They provided the endpoint URL which contains a Port number. https://Test.com:50001/RESTAP/BGN/PRDV/CREATE When I'm trying to make the request I'...
1
vote
1answer
92 views

SSJS - HTTP GET for API

I am trying to return an array of Event objects using SSJS HTTP GET with an authorization bearer header. This is my current script but it isn't loading anything. Would anyone be able to assist? I am ...
-2
votes
0answers
31 views

How to extract data from email tracking in Marketing cloud with Python API

I need to automate a task to download data from Email tracking. I created a App and connected on api with python using lib FUELSDK, but I didn't find anything about how to extract this information . ...
0
votes
1answer
24 views

Help debug MobilePush send

I am trying to use Triggered API to send a Push notification. Can anyone help me debug what could be wrong with this simple code? I have the right Client Secret and ID as well as mobilepushlistid. %%[...
5
votes
1answer
60 views

Can you upsert using Composite SObject Tree?

As the title suggests, using the Composite SOjbect Tree request, can you upsert records using External IDs?
0
votes
0answers
7 views

Why do new records take so long for searchAndGetScreenPopUrl to pick up on?

I've noticed that when I add a new record or change something for searchAndGetScreenPopUrl to pick up on while testing the function that it will often take quite a while for the function to pick up on ...
0
votes
2answers
33 views

Limits for an user to make API Calls

I know that we can make callouts based on Salesforce edition and its licenses, is there any limitations on user level ? i.e How many API requests can an user make in 24 hour period ?
0
votes
0answers
15 views

3rd party searching the knowledge base and presenting articles

Is it possible for an integrated 3rd party, to search the knowledge base, direct to relevant articles and present them? What are the options (pros & cons) and which one is the most recommended? ...
0
votes
1answer
58 views

How to Refresh an existing Filtered Data Extension without Filter Activity / Automation?

I know that there is the process to create a filter definition, a filter activity and then have these run inside an automation to automatically update filters. But this means that you need to ...
1
vote
1answer
25 views

Is there any throughput limits on the REST API?

We are using the REST API to upsert records into Salesforce in real-time, which means there is only ever 1 record to upsert at a time. For the initial load of data we are going to use the same ...
0
votes
1answer
26 views

Can Remote Site Settings whitelist IP addresses instead of/in addition to domains?

I'm just wondering: We make a number of callouts from Salesforce to different APIs, and so obviously we need to whitelist their respective domains with Remote Site Settings. However, I'm wondering ...
1
vote
0answers
20 views

What API limits are imposed on Knowledge Base REST API?

I would like to know what limitations are there on the Knowledge Base REST API? Would this use the same API limits imposed in a Salesforce org? or does it also use the Site.com limits (number of page ...
0
votes
1answer
57 views

Rest API request on behalf of specific user

I have to retrieve data from Salesforce (using default endpoint for Rest Api SOQL queries) for a specific user. Now for getting Access_token I'm using "grant_type: password" with "System User" who has ...
1
vote
1answer
33 views

Build a Custom Profile Center for Multi-Org purpose [closed]

We're going to upgrade to Multi-Org soon and I would like to know how can I create a Custom Profile Center, since the documentation says that it is required. I followed this guide (https://developer....
0
votes
1answer
45 views

dynamic json body as http post request

public class RequestWrapper { public static GetUrlRequest GetUrlRequest; public class OrderDetails { public String txnId; public String custOrder; public ...
3
votes
1answer
69 views

How to query Knowledge Articles unauthenticated using the Knowledge API

According to Salesforce documentation using the Knowledge API we can "allow both authorized and guest users to retrieve the user’s visible data categories and their associated articles.", however I've ...
1
vote
0answers
16 views

What does Pardot API version 4 read by email response look like?

The Pardot API version 4 response for "using prospects" operations looks the same as in version 3. http://developer.pardot.com/kb/api-version-4/prospects/#xml-response-formats http://developer.pardot....
0
votes
0answers
14 views

Find out all the refinement definitions for a category

How can I get all the refinement definitions for a category? I did not find anything in the class Category API which would allow me to do that, while it is pretty easy to find out all the refinement ...
0
votes
0answers
12 views

Tooling API to fetch Duplicate Objects/Fields

I want to fetch duplicate object and field information before deploying my package to another org. Is there any pre build tool or tooling API reference that can resolve my problem?
1
vote
1answer
44 views

Can I get the email template by email id via SFMC API (REST/SOAP)?

I have a few emails in Email Studio (I don't have any classic emails). I would like to use the API (either SOAP or REST whichever works) to get the email template. Then after that, I will make another ...
1
vote
1answer
68 views

Create a Automation Studio Dashboard on a Marketing Cloud Cloud Page

I Want to Create a dashboard where all Automations and there status in the Account is displayed. old post on the topic I Want to push all Automation object data to a data extension. This can only be ...
-2
votes
1answer
51 views

Unsubscribe publication list through salesforce

Does someone have an example solution for me? I want to Unsubscribe/ Active people on publication list through salesforce? I want to map certain checkboxes in Salesforce to Publication lists in ...
1
vote
2answers
54 views

How to test OAuth JWT authentication in SF CRM

I'm trying to implement and test JWT Bearer authentication, I've created a key pair on my local machine and created a connected app in my sandbox and uploaded my .crt file. Is there a way I can test ...
1
vote
1answer
28 views

LWC Access denied error referencing namespace problem

We have a JavaScript utility class containing two properties, like: class DateRange { start; end; constructor(start, end) { this.start = dateToIsoDateLocal(start instanceof Date ?...
0
votes
0answers
15 views

Use SOAP API to connect third party system and be able to search that database from Salesforce

I'm struggling with understanding how I will implement this SOAP API from Salesforce to https://services.edrs.sfa.bis.gov.uk/documentation/WebServices/. The API will enable a user to search the EDS ...
0
votes
1answer
40 views

Access Token stopped working - Connection App problem - INVALID_SESSION_ID

I'm facing a problem with one of my Sandboxes. Today I noticed that Access Token received from Connected App doesn't work (Session expired or invalid - INVALID_SESSION_ID). It's weird because ...
0
votes
0answers
22 views

Auth Provider for Trello?

I've spent too many hours today trying to set up an Auth Provider + Named Credential for Trello's auth flow... I guess my question is, for those who have dealt with Auth Providers in SFDC, is this ...
0
votes
0answers
21 views

Marketing Cloud API for Admin Users [duplicate]

I am creating an external tool to help with auditing user access across multiple applications. One of those on the list is Marketing Cloud to be able to see which users have accounts and their status. ...
-2
votes
1answer
35 views

Sync accounts and contacts with external system [closed]

We want this to be a 2 way sync. So we already have a custom webservices to make callouts. I want to explore some standard options. 1) Can platform events be used to update external systems if ...
0
votes
0answers
24 views

Async API enabling issues

What am I missing? When I call async API through Apex(using "authorization" : "bearer " + userInfo.getSessionID trick), I get a 403. When I use the workbench I get {"message":"This feature is not ...
2
votes
1answer
46 views

Using Marketing Cloud API to Activate, not Run, an Automation

I am looking for a way to use the Marketing Cloud API to activate an Automation in a manner that is equivalent to pressing the "Active" button in the UI (next to the "Paused" button). Eliot Harper ...