Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
12 views

ContentNote - INVALID_INPUT which characters are invalid

I am trying to use REST API to update the content of ContentNote object. I am submitting base64 encoded content, e.g. this: PHA+cmFiYml0PC9wPjxwPjxicj48L3A+PHA+...
2
votes
1answer
25 views

Salesforce api.status.salesforce.com returns no data

I have registered a custom domain (My Domain) in my Enterprise Edition Org and I am able to successfully login through the custom domain url. Custom Domain: mobilecustomdomain URL: https://...
3
votes
0answers
72 views
+100

Generating email in SFDC/Marketing cloud but sending it out to another system, not the recipient

We are using Salesforce and Marketing cloud to process data, create a campaign, populate a template and send emails. Pretty much as you'd expect. Separately, we have an internal system that is ...
1
vote
1answer
23 views

Bulkify the Tooling/Metadata API

Came across various articles and I couldn't find approach for bulkyfying the Tooling/metadata API. In this post, the most voted answer handles one request at a time. However what I am trying to ...
1
vote
1answer
571 views

Cross reference works for ID but not for External Id

I am facing INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY while creating CaseComment object with external id CaseNumber for Case parent object. I am using the profile with "Partner Community" user ...
0
votes
0answers
12 views

Is it possible to download contents using servlet.shepherd url from postman

Is it possible to download contents using servlet.shepherd url from postman. I understand that i can download the files using sobject blob retriever via postman. I also can download the file from ui (...
2
votes
1answer
40 views

Populate Owner in REST API Using external Id

I'm upserting a custom object via the REST api. How can I use the REST api to populate the record owner using an external id? See details below: Endpoint: /services/data/v42.0/sobjects/...
0
votes
1answer
1k views

Invoking REST callous in batchjob?

i'm getting the records from third party in sfdc cases. for that i have developed a rest callout.but i'm stuched at for calling third party records i invoked in endpoint url in my rest callout like ...
1
vote
1answer
53 views

REST Request - AWS Access Key ID and AWS Secret Access Key [on hold]

I am reading this document Authenticating Rest Requests The first paragraph says .. Every non-anonymous request to S3 must contain authentication information to establish the identity of the ...
0
votes
0answers
15 views

Creating auto-refreshing filtered data extensions through the SFMC APIs

Given a folder of filters, is it feasible to create filtered data extensions and for each filter, and an automation that automatically refreshes them through the APIs? This old thread seems to imply ...
0
votes
0answers
18 views

multiple rest url callbacks in lighting web components [on hold]

Is it possible to call multiple query values from single rest call. I have a use-case with user defined js-meta xml file, where values from users can have X,Y or more values each separated by comma ...
0
votes
1answer
23 views

Calling salesforce API using java application returns 301

I tested the following code and is working perfectly on sandbox and returning the following: HTTP/1.1 200 OK Successful login instance URL: https://XXXX.salesforce.com access token/session ID: ...
0
votes
0answers
9 views

Pardot Interaction Report

I have a request to get the data that is currently in Pardot under reporting and the email interaction tab and add it to Campaigns in Salesforce. Pardot Email Reporting I have gone through all the ...
2
votes
1answer
520 views

Can i get report data which is visible to a particular user via salesforce analytics?

I've gone through Salesforce Analytics Rest Api and implemented an apex class which will make rest call services/data/v32.0/analytics/reports/<reportId>?includeDetails=true and get report data ...
1
vote
1answer
333 views

Is there any way to retrieve metadata file for a dataset through REST API in Salesforce Wave Analytics?

I have created a dataset in Wave Analytics through REST External data API. How can i retrieve the metadata files used for creating that dataset using JUST NAME OR ID OR OTHER COMMONLY AVAILABLE ...
1
vote
0answers
28 views

PersonAssistantName field unavailable to API in Person Account

I have an Org with 'Person account' enable onto it and I am working with Salesforce API to create/update person account record. I am sending some data in 'PersonAssistantName' and getting an error in ...
2
votes
1answer
579 views

how to send pdf file from apex form

i am trying post pdf file from visual page to my controller using apex:form and send it third party using rest api, but on controller end i am not getting my pdf file.its field is null, visual page &...
0
votes
1answer
35 views

Please suggest a way to post to salesforce rest resource without using the username and password as the authentication

I'm trying to post to a Salesforce Rest Resource from a java console app. Currently I'm exposing it as a public resource via custom portals. I'm looking for suggestions for a way to implement the ...
0
votes
1answer
25 views

Rest API: The Requested Resource does not Exist

I am trying to get a Salesforce REST API Integeration to work and struggling quite a bit. I've got a successful authentication via OAuth that returns an access_token. I'm using that access token ...
0
votes
0answers
28 views

Test class For http Post

i wrote unit test code and got 52% code coverage and struck with following error: System.NullPointerException: Attempt to de-reference a null object. Please correct me where i wrong i am new tp ...
2
votes
1answer
45 views

Enterprise Patterns for Consuming non-trivial REST services in Apex [on hold]

Communication from Apex with huge REST Apis feels cumbersome to me as there is so much repetitive work involved with building Apex Objects that function as callout request params or responses. This ...
-1
votes
0answers
21 views

getting Insufficiant_Access while get call to user in sfdc

i am trying to get user details from get call via workbench.I dont understand the below issue Please suggest how can i resolve this error
-1
votes
0answers
17 views

Test Class For Http Post(Rest API) [duplicate]

I am new to Rest APi and don't know how to write Test Class for below code. @RestResource(urlMapping='/something/*') global with sharing class CreateXYZ { @HttpPost global static string ...
0
votes
0answers
27 views

Performing multiple operations on same record in same transaction [duplicate]

I am trying to do three operation using same record. First Operation: Set ContentDocument isArchived field to false. Second Operation: Grab contentdocument by calling REST API Endpoint. Third ...
2
votes
1answer
30 views

Create and Link Document to multiple records using rest api

From the docs I've successfully been able to create a document in Salesforce using Inserting a New Document. I'd like to be able to link this document to multiple cases. From what I understand, it ...
2
votes
0answers
27 views

Is it possible to download archived contentversion or contentDocument

I am having a hard time downloading a contentversion/contentdocument where contentdocument is already archived. I am trying to download the file by hitting rest endpoint services/data/v44.0/...
0
votes
1answer
37 views

SSJS Post request error

I'm trying to delete contacts based on DE. So far I'm testing the code on cloud page but eventually, it will be used as part of automation. I'm successfully retrieving a token but struggle to execute ...
0
votes
2answers
44 views

Using REST to update Salesforce record from Salesforce

I am trying to update a Salesforce record but I have to update it using an older version of Salesforce API (v44) due to some new standard behavior changes salesforce made. I am doing this by making a ...
1
vote
2answers
26 views

How to incorporate Consumer id and consumer secret in my REST API (Apex class)

I have a requirement where some external web forms would be calling our REST API to submit Lead. I have created a connected app, got the consumer id and consumer secret. I want my apex class to be ...
0
votes
0answers
24 views

Salesforce to IBM DB2 Integration [closed]

I am working on a requirement where I need to pull data from IBM db2 to Salesforce using the REST services. Has anyone tried it yet? I am not interested in the third party connectors.
0
votes
0answers
26 views

request signature does not match with the provided signature in execute-api service of AWS

String dateStamp = EncodingUtil.urlEncode( System.now().formatGmt('yyyyMMdd'), 'UTF-8'); System.debug('dateStamp>>' + dateStamp); String dateTimeStamp = EncodingUtil.urlEncode(System.now()....
-1
votes
0answers
49 views

Callout error to external system in salesforce Throws even after seperating the Callout and DML as per earlier questions [duplicate]

We have Trigger that calls a future web service class , which is inturn calls out external system. When the Account status is set to Active then the system callout the external ITSm system and ...
12
votes
7answers
5k views

How do I send SMSes from Salesforce?

What would be the approach to create an SMS application (either in Salesforce or other language) to send SMS from Salesforce? Is it feasbile if the client-side process is done through a streaming API (...
6
votes
1answer
598 views

Copy journeys between business units?

does anyone know a way to quickly copy journeys from Journey Builder from one business unit to another one? It would be a huge time saver when we're setting up new journeys on separate business units ...
1
vote
1answer
51 views

New Transactional sending Email API Error 400: TriggeredSend definition not sendable due to definition status

I've created a new send definition OK with a status 201 : where URL parameter "status" = "Active"... When I check the response I can see that it is set to "New". When I try to post to "/messaging/v1/...
0
votes
2answers
609 views

Read Timeout error while making an API Inbound call to Salesforce

Getting Read Timeout error while making an API Inbound call to Salesforce. Is it possible to check at Salesforce is receiving connections.
2
votes
0answers
372 views

Can not insert FeedItem through apexrest

When trying to create a FeedItem through the ApexRest I'm always getting the following error: [{"errorCode":"APEX_ERROR","message":"System.DmlException: Insert failed. First exception on row 0; ...
0
votes
1answer
24 views

Can multiple autorization_code co-exist for a single integration user?

I have a single integration User, which is used to authenticate a background integration job. This uses web-server flow. And to avoid storing username/password on the server, I have only supplied ...
4
votes
1answer
74 views

Create or update Automation with Marketing Cloud REST API new endpoint

there is an endpoint to retrieve automation using Rest API with OAuth2 token and GET method: https://{{tenant}}.rest.marketingcloudapis.com/automation/v1/automations/{{id}} In the response you will ...
1
vote
2answers
48 views

How to expose REST API to external users — how do they authenticate and authorize to create lead in Salesforce [closed]

I am a bit confused. The requirement is that we need to create a REST API in Salesforce that has one POST method. Right now, I have been testing it with POSTMAN tool in 2 steps: Making a POST request ...
0
votes
1answer
669 views

Search for an existing Marketing Cloud contact using REST API

I'm trying to search for a contact by contact key using the SFMC REST API but all I am getting is a HTTP 500. I am using a known contact ID. Endpoint: (POST) https://www.exacttargetapis.com/contacts/...
0
votes
1answer
374 views

REST API - To create/update a row in Data Extension not working

I am using following URL to create REST API request to create/update a record in the data extension: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/...
1
vote
2answers
347 views

Rest Callout to External Resource, 401 Unauth Error, Cannot Set Api Key

I am having issues giving an API key to an external url for a rest callout. req.setHeader is where I attempt to do so. How should I structure this? I only get 401 unauth errors. I am trying to ...
1
vote
2answers
34 views

What happens if I don't provide Time in Date/Time field

I am creating a Rest API. I have one DateTime field(one of the field for POST request). Wondering what happens if someone calls the API, makes the POST request and fills out just the Date part of the ...
2
votes
1answer
657 views

Get Instance Url with valid OAuth Access Token

How do I get the Instance URL with just a valid OAuth Access Token? I don't have any other information, for example, I don't have the client_id or client_secret. If I make an assumption that the ...
1
vote
1answer
338 views

Querying LeadStatus (including inactive)

It is trivial to retrieve all active LeadStatus values through the REST APIs, but I cannot see a way to pull in the inactive ones. SOQL query to retrieve active lead statuses: SELECT Id, ApiName ...
0
votes
3answers
82 views

How to send Post request to Rest API with XML data

I have created a rest API(apex class) in Salesforce. I have multiple nested tags in xml that comes via API request. I am wondering how do I define my post method in apex that could handle the request. ...
1
vote
0answers
17 views

Specify a clientId during a REST api call in Salesforce

I am trying to make a REST api call from my node.js script to invoke a REST API in my Salesforce Org using OAuth.I wanted to track the Client from which the call was being made using the standard API ...
1
vote
1answer
22 views

Event Notification Service Webhook vs. API limit?

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/createCallback.htm --> As far as I understood, the Notification Service triggers POST requests to the configured ...
0
votes
2answers
30 views

Salesforce Marketing Cloud API Get Data Extensions a ContactKey is in

A contact Key can be in multiple data extensions. I was wondering if there's a way to retrieve through the APIs all the data extensions a contact key is in? EDIT: We foresee our marketers creating ...