The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [rest-api]

REpresentational State Transfer (REST), or RESTful, web services provide interoperability between computer systems on the Internet. The Salesforce REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

Filter by
Sorted by
Tagged with
2
votes
0answers
25 views

REST API calls in Marketing Cloud [duplicate]

Are REST API calls in Marketing Cloud consumed as BULK? I know there is a limit of 2,500 per min and a yearly limit based on the MC Edition, but in a scenario e.g. where we are pushing 1 million ...
2
votes
0answers
24 views

Consent Management in Marketing Cloud - Difference between hasOptedOutTracking and DoNotTrack

I would like to honor the GDPR customer request : I do not want Marketing Cloud to track my messaging and online behavior. For that and according to the documentation here : https://help....
0
votes
0answers
9 views

Bidirectional Sync between Salesforce and External Transactional Database

I have a visualforce web form, that creates Accounts and Contacts in Salesforce (Web to Accounts/ Contacts) WE are looking at integrating Salesforce with External Transactional Database that is hosted ...
0
votes
1answer
8 views

How to limit Articles List results by category group

I have many Articles. They all belong two one of two Category Groups, which we will call Old and New. I can retrieve a paginated list of public knowledge articles like /services/data/v44.0/support/...
0
votes
1answer
27 views

Tooling API response, how to print in log?

I’m trying to print (system.debug) the response returned from tooling API but the debug is not displaying anything. So, I was wondering if the code below is correct. HttpRequest req = new HttpRequest(...
2
votes
0answers
20 views

Content BUILDER API bulk edit

It's possible to use API to bulk edit files in Content Builder? What about classic content? If so, is there an already built product that does that? In particular I would like to replace part of a ...
0
votes
1answer
39 views

Using REST API to check if contact key exists in marketing cloud all contacts?

Is it possible to use marketing cloud rest api to check if contact with specific key exists in all contacts without any contact data creation or modifications? I tried to search rest api ...
0
votes
0answers
57 views

How do I populate Salesforce records using REST API to collect data for updating

I'm new to working with API's and code in general, I have been challenged to create an invocable Apex class that calls a rest API to collect data to input into the Salesforce record that invoked the ...
0
votes
0answers
12 views

Set header and add header in rest Class

I have below class which i need to test it from workbench/postman. I am not sure how should i test it . @RestResource(urlMapping='/CheckAuth/*') global with sharing class example1 { @HttpPost ...
0
votes
0answers
12 views

File content missing error while creating transient document on adobe sign using REST API

I am trying to create transient document in adobe sign using rest api. After lot of research I was able to make the correct multi form request in Salesforce Apex.But now I am getting the file content ...
2
votes
4answers
40 views

Querying Apex Classes & Dependent Test Classes

Does anyone have any advice on how I can go about querying test classes and dependent test classes? Our Org is getting very large and finding the correct test classes for each class is becoming an ...
0
votes
2answers
25 views

REST API & NPSP error: FIELD_CUSTOM_VALIDATION_EXCEPTION

I have NPSP v3 set up in Salesforce and am using the REST API to create a contact record. I am inserting fields [FirstName], [LastName], [Email], [Phone], [MailingState], [MailingPostalCode], [...
0
votes
1answer
28 views

Bad Request While Trying to create transient document in adobe using REST API [on hold]

I am trying to create a transient document in adobe sign using rest api.Following is my code snippet: Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://api.in1....
0
votes
0answers
22 views

REST API Returning Error “system_down” with description “system may be currently unavailable”

I am using Salesforce's REST API to perform operations like GET Opportunity, DELETE Contact etc. I am using Salesforce's free Developer Edition. Occasionally the API returns the following error: { ...
0
votes
0answers
17 views

Multiple sequential calls to API [duplicate]

I am having trouble figuring out a way to make multiple calls in order to an external API. The task is currently successfully working using javascript but I need it to work via apex for a large (200 -...
0
votes
2answers
56 views

How to Generate Access Token Using Ampscript

Updating my question with new error code. I tried the below code to generate Access Token. But I am keep getting an error. orted_grant_type","error {"error":"unsupported_grant_type","...
0
votes
1answer
32 views

How to convert Salesforce contentversion to actual file

I have created a rest API that returns the list of opportunities as well as files attached to the opportunities. I am able to call the API and retrieve the data via POSTMAN. This is the code: @...
0
votes
1answer
49 views

REST API error: Primary key '(primarykey)' does not exists

I am trying to upsert a row into a triggered send data extension with a synchronous call, but I am receiving the following error message: { "message": "Primary key 'Email' does not exist.", "...
0
votes
1answer
18 views

How to capture the request/response body of the standard REST API being hit by external systems

I am struggling with a requirement of having a complete logging mechanizm for both inbound and outbound API calls including the actual request body/header and response body. Outbound is covered by ...
0
votes
2answers
53 views

Is it possible to create a REST API in salesforce that returns zip file

I want to expose a REST API to the other website. The REST API in salesforce basically needs to query on Opportunity data as well as Files related to Opportunity, zip it and return it. Questions: ...
1
vote
0answers
14 views

OAuth Authentication for Community Customer User [duplicate]

I am trying to connect from Salesforce an unrelated Salesforce instance through a community user. I can successfully authenticate using Postman, however I am having a bit of trouble converting this ...
1
vote
0answers
36 views

Data Extension List REST API

I want to list the data extensions contained in a specific folder in SFMC using REST API. I have already checked the documentation and I found a way to do it with SOAP API. But we need to do it with ...
0
votes
0answers
4 views

pardot api to return all folder names for all lists

I have a request asking if it is possible via a Pardot rest api call to get a response where it contains the list and the folder it belongs.
3
votes
1answer
29 views

Oauth2 redirect_uri_mismatch except that it matches exactly

So I created a new Connected App in Salesforce - in a sandbox environment. In the app's settings I enabled OAuth with Full access and set the Callback URI to https://test.mydomain.com/tools/...
0
votes
1answer
28 views

Different permissions between REST API and UI

I'd like to be able to set different permissions for the same user depending on whether they're accessing/editing a resource in the UI or via the REST API. For example, they'd be able to edit a custom ...
0
votes
1answer
28 views

How to query Feature Licenses and Usage-based Entitlements from Company Information via REST API or SOQL?

I wish to query the tables that make up Company Information on a periodic basis automatically. I see UserLicense and PermissionSetLicense available as sObjects in Salesforce but I do not see how I ...
0
votes
2answers
152 views

Unable to Post Data to Salesforce in UAT Servers

I have created a api request to post form data to create a lead in salesforce. First I requested authorization key to insert data to salesforce (Using oauth,client id and client secret.) This works ...
0
votes
0answers
26 views

Journey API Entry Source - EventDefinition Key not found - errorcode 10000

I'm trying to fire one journey though API entry source but I get the error { "message": "EventDefinitionKey 'APIEvent-43f63b4f-02f4-62d2-cc88-c433c5dc0a76' not found", "errorcode": 10000, "...
0
votes
1answer
30 views

Quote Calculator plugin doesnt seem to be firing at all

I have a requirement that, whenever we click 'edit lines' button on Quote object the price of the products selected needed to be updated in realtime from SAP. I have created a Custom script JScode ...
0
votes
0answers
54 views

AWS Signature Version 4 Named Credential doesn't seems like working

I have requirement to fetch a file from s3 server to Salesforce. As a part of Summer'19 release, Salesforce has provided AWS Signature Version 4 protocol in Named credential.From below link I see that ...
0
votes
0answers
29 views

Send Opportunity records and related files to Google drive

I want to run a trigger that runs on after insert and after update on opportunity fetch the opportunities data and related files and send it to Google drive. Is it possible to do it via apex code? ...
0
votes
1answer
55 views

Expose Visualforce instance url for making rest api call

I have started to make a chrome extension for salesforce. I got this link to start off with. https://github.com/mwelburn/Chrome-Extension-Force-SOQL-Popup This is a simple extension which queries the ...
1
vote
1answer
42 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 ...
4
votes
2answers
129 views

Deleting a Mobile Connect instance of a contact only (without deleting the entire contact)

The current deletion framework that was added last year does deletes entire contacts. A contact deleted this way is deleted from: All Contacts All Subscribers Mobile Connect I have a problem where ...
0
votes
1answer
26 views

Error message in Integration

Error Message REST Method How to create error message for this REST API code, @RestResource(urlMapping='/api/Contact/*') global with sharing class ChildRelatedRecords { @HttpGet global ...
0
votes
0answers
25 views

Updating Metadata of Standard Objects

Good day! I bumped into a question from here. I was wondering if there is a counterpart for this when it comes to Salesforce Standard Objects? Upon reading the answer, it suggests a library which ...
1
vote
1answer
30 views

How to call apex class from force.com sites

I have rest resource class which i am calling from force.com site.. Below is my site url http://partial-sms.cs31.force.com/webhook @RestResource(urlMapping='/webhook/*') global without sharing ...
0
votes
1answer
89 views

How to test API integration in marketing cloud?

I have created a API package under Setup -> Installed Packages. I have created API Integration component for the package .I have the below basic details for the component. *Client Id *Client Secret ...
0
votes
3answers
60 views

Field is not writeable: User.UserType

I'm trying to test a scheduled Apex class and I have a method that generates fakes users within my test class: List<User> newUsers = new List<User>(); Profile p = [ SELECT Id FROM ...
0
votes
0answers
14 views

How to delete all rows with certain condition using Marketing Cloud Rest API

I'd like to hit a rest API and delete all rows in a data extension. The data extension doesn't have a primary key, but it has a "condition = x". For instance: condition, value x, 11 x, 22 x, 33 y, 44 ...
0
votes
0answers
14 views

ChasitorNotTyping & ChasitorTyping LiveAgent API are working?

We are trying to encapsulate the LiveAgent API using an API proxy, most of the methods are working perfectly but for some of them I am not sure if I am doing something wrong or really the method is ...
0
votes
0answers
15 views

invalid grant authen failure curl call [duplicate]

I am following trailhead web service curl auth I can't get the OAuth to work. i creat app connect curl -v https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=...
0
votes
0answers
25 views

Salesforce Integrations best practice

I need to implement a request that will be sent over a 3rd party (used as tunnel) to SAP. Which mean - Request: SF --> Server 3rd Party --> SAP Response: SF <-- Server 3ed Party <-- SAP ...
0
votes
2answers
39 views

Unable to set datetime field in data extension to null; Marketing Cloud Rest API

The field is Nullable and I'm trying to hit /data/v1/async/dataextensions/key:DE_NAME/rows with attached items obj const items = [ { 'Subscriber Key': SUBSCRIBER_KEY, 'Date': null } ] ...
3
votes
0answers
24 views

Live Chat API: Any guarantee of initial /Messages entry?

When long-polling the Live Chat API /Messages endpoint, the docs indicate that all messages sent between agent/chat visitor are returned in order, from a list of possible Message types. After looking ...
0
votes
0answers
20 views

I need to track picklist value chanages from record using event monitoring is that possible

Using Rest api i have tried using work bench /services/data/v32.0/sobjects/EventLogFile/describe This is returing api "picklistValues" : [ ],
0
votes
0answers
49 views

Apex callout yields “Ending position out of bounds: -1” error

This is my vf page <apex:page controller="AccountRest"> <apex:sectionHeader title="Accounts" subtitle="List View"/> <apex:pageBlock> <apex:pageBlockTable value=...
0
votes
2answers
88 views

Parsing Array of Nested JSON Objects

I am trying to parse an array using Apex that contains nested json data from an external REST API call. The code is shown below, the response comes back, but I want to get at the keys/fields in the ...
0
votes
1answer
25 views

HttpRequest and setEndPoint not working

I am using developer console and trying to create a new simple class so I can make an external callout to a REST api and return some json data. I've added the remote URL in the Remote Site settings ...
0
votes
1answer
20 views

Web service end to end testing

Background: I have created a lightning quick action button, when i click the button, the apex controller makes a GET Http callout to a 3rd party web service. The web service returns a JSON, and ...