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.

0
votes
0answers
9 views

STATUS_CODE returned for the response: 403 STATUS_MESSAGE returned for the response: Forbidden

Can someone please guide me how to resolve the access forbidden 403 status code error ? What can i do to at least hit the end point? I am executing the code anonymously in developer console string ...
0
votes
0answers
35 views

How do I call SQL Server stored procedures from Salesforce? [on hold]

I've been asked to build a Build SSIS packages and deploy/execute them from Stored Procedure. This Stored Procedure should be executed/called from Salesforce. I've built the SSIS packages and deploy ...
0
votes
2answers
721 views

Can we export data from salesforce wave analytics dataset using wave REST API?

I am trying to get all the records of salesforce wave analytics dataset object but i don't want to user GET API available for it. Is there any other way to retrieve all datasets other than regular GET ...
0
votes
0answers
25 views

Rest API Call to enter contact into a Journey failed with Not Authorized Error

I am trying to insert a contact into a Journey using Fire event Rest API call. Article I refereed: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/postEvent.htm I ...
0
votes
0answers
27 views

using oauth2 web app in marketing cloud

i have a web app authenticated app, i manage to get an auth code, after which i get an access token but when i use the access token i get 403 with no explanation. this is the url i use to get the ...
0
votes
2answers
575 views

How do I do bulk update to external web via REST api?

I have a REST API callout to our website to update data (eg Account) there from our Salesforce instance. This is all working fine doing 1 Account when it's created or updated as the trigger does the @...
1
vote
0answers
50 views

ContactKey is required error when firing Event (Interaction Event)

I have successfully get access token via ssjs When passing it to POST /interaction/v1/events (https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/postEvent.htm) i'm ...
-2
votes
0answers
12 views

Post multi-part data from Salesforce to QuickBooks online [on hold]

I used below Encoding technique I'm getting my file in base64encoding format. String boundary = 'YSHDFBSGHJ741e90d31eff'; String header = '--'+boundary+'\r\nContent-Disposition: form-data; name="...
0
votes
2answers
39 views

OAuth 2.0 Auth token request failed with error invalid_request Must use HTTP POST

OAuth 2.0 Auth token request failed with below error { "error": "invalid_request", "error_description": "must use HTTP POST" } What does this error mean? I am using Postman. Have a connected app. ...
0
votes
0answers
7 views

View the history of SingleEmailMessage usage

I know how to see how many SingleEmailMessages we've sent in the current GMT day, but I need to know if it's possible to see a history of emails further back than that. For example, for the past week, ...
2
votes
2answers
35 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+...
0
votes
2answers
891 views

Bulk Query with PK Chunking enabled sometimes does not return all the batches

The requirement is to use Bulk Query API with PK Chunking enabled, and to create CVS files for each batch with the chunk-size For example, in the Account Object if I have 80,000 records, and have the "...
4
votes
2answers
1k views

Unsubscribe from SMS Keyword through API

I am trying to use the FUEL API to unsubscribe a mobile number from a particular keyword on a private shortcode. I would be fine with a global opt out on that private shortcode, as well. I have tried ...
-2
votes
0answers
22 views

Dropbox integration [on hold]

anyone knows if there is a way to integrate Dropbox as a related object or component, attachment or whatever with only dropbox url? I mean, i create a case via API REST and i recive something like ...
2
votes
1answer
37 views

REST API call to remove contacts from a journey

I am trying to remove contacts from a journey using REST API call but keep getting the 202 response with errors. Not sure if I am using the wrong definition key, or if there is a mistake somewhere ...
0
votes
1answer
27 views

Journey Builder API Event Entry Internal Server Error

I created a simple journey to test API events. It looks like this: As you can see it's a very simple journey. It's supposed to be triggered by an API call, send an email and exit. It uses a sendable ...
0
votes
0answers
14 views

I am hitting the Amazon mechanical TURK API from postman but getting an exception every time [closed]

POST HTTP/1.1 Host: mturk-requester-sandbox.us-east-1.amazonaws.com? Content-Type: application/json X-Amz-Target: MTurkRequesterServiceV20170117.GetAccountBalance Accept: application/hal+json X-Amz-...
1
vote
2answers
50 views

Rest API call to Salesforce from site - one call only

I created a Rest service to insert/update contacts & opportunities from a donation page on my client's site. The web developer refuses to make more than one call from the script that posts to my ...
0
votes
0answers
31 views

Create downloadable link for HTTP Response Blob data

I am getting blob data from an external system using REST API. I want to create a downloadable link for that so that user clicks on that link and file can be downloaded without saving to Salesforce. ...
1
vote
0answers
36 views

Referencing RecordType by name in Tree Request

Is there a way to reference a record type by name in tree requests? My example payload: { "records": [ { "LastName": "Doe", "RecordType": { "...
0
votes
1answer
14 views

How to get LiveAgent id

liveagent.showWhenOnline('5737F000000PCZJ', document.getElementById('btnId')); In the above code, 5737F000000PCZJ this Id has been used. Can anyone please explain what is this number and how can we ...
1
vote
1answer
27 views

Hyperlink in the case's comment

I am using the following Salesforce API to generate a case comment. POST /services/data/v39.0/sobjects/CaseComment HTTP/1.1 Host: *******.my.salesforce.com Content-Type: application/json cache-...
1
vote
1answer
41 views

Marketing Cloud API Request “Account/User not authorized for operation”

I've been trying to run this request to create a contact POST /contacts/v1/contacts HTTP/1.1 Host: DOMAINHERE.rest.marketingcloudapis.com Content-Type: application/json Authorization: Bearer ACCESS ...
0
votes
1answer
557 views

Proper method to store client ID and client secret while integration

While integrating facebook / Twitter / Other social websites with salesforce, what are the proper method to set the client ID and Client Secret ? I had stored in salesforce. While retrieving it back ...
0
votes
1answer
20 views

Data type for Phone Field or how to convert String to Phone Format in Apex

I am receiving a phone field value from REST API call. Then I call JSON2Apex to convert the incoming data from JSON to Apex, so it automatically converts the phone data into string, since phone is not ...
1
vote
2answers
510 views

refresh token not update access token

I have a trouble between integration with SalesForce and our's service. We are using oauth2 authorization and SalesForce REST API. Our clients authorize successfully for the first time and get the ...
0
votes
1answer
41 views

Consuming a REST api in Salesforce

I need to create an integration between Salesforce and a third party service. Essentially Salesforce will trigger a callout to the third party when a status change occurs on a custom object record. ...
0
votes
0answers
20 views

Get Child Records with getRecordUI in LWC

Trying to child records through the getRecordUI @wire(getRecordUi, { recordIds: '$recordId', childRelationships: 'PREFIX__OBJECT__c.PREFIX__CHILD_RELATIONSHIP_NAME__r', layoutTypes: 'Compact', modes:...
2
votes
2answers
39 views

Is it necessary to provide consumer key and consumer secret to get access token/make API call

I am trying to update contact record in Salesforce via API call. I got the access token first by providing username, password, consumer key, consumer secret, grant_type. Then I used the access token ...
2
votes
2answers
888 views

Using AWS Lambda to query SalesForce

I'm working on a AWS serverless app that will need to query SalesForce from AWS Lambdas to receive it's data and I'm struggling with how to authorize my Lambdas to talk to SalesForce. Most of my ...
1
vote
1answer
499 views

C# REST API - Get Dependent Picklist Values

Within one of my Salesforce object, I have cascading picklists where the selection of one picklist displays values for the next level picklist. So I have three dependent picklists. What I would like ...
2
votes
1answer
556 views

RestResource urlMapping routing is conflicting with a similar URL

So we have a number of mapped urls, and up until recently they were working fine. We recently noticed that our requests are inconsistently being routed to the wrong APIs. Example: @restResource(...
1
vote
1answer
25 views

Restrict Contacts REST API routes

I've been using several of the Delete Contact REST API routes, of which there are several: Delete Contacts by ID Delete Contacts by Key Delete Contacts by List Reference Get Status of the Contact ...
4
votes
1answer
27 views

How Composite subrequests count toward ConnectAPI limits

I´m using Salesforce batch composite API { "batchRequests" : [ { "method" : "PATCH", "url" : "v34.0/sobjects/account/001D000000K0fXOIAZ", "richInput" : {"Name" : "NewName"} },{ ...
0
votes
0answers
86 views

JunctionIdList using REST API

Is it possible to add values to fields of type JunctionIdList using the REST API? Specifically I'm trying to add multiple Contact Id's to the ToIds property on an EmailMessage object; https://...
0
votes
1answer
37 views

Marketing Cloud Data Extension API Insert Unable to Save Rows

I'm trying to use my REST api set up in the marketing cloud to insert data to a data extension. Anytime I try to insert, I get the following error { "message": "Unable to save rows for data ...
2
votes
4answers
718 views

Calling a rest API from one Org to another Org?

I have created Connected App & Auth Provider. This is the Code i am currently running. Getting error. What I am doing wrong? Can anyone please help me with this? 1st Org - (Class ...
0
votes
1answer
21 views

React Native SDK - SmartSync - REST API calls

We're currently retrieving a list of Salesforce apps from the UI API using this function: net.sendRequest('/services/data', `${net.getApiVersion()}/ui-api/apps`, (e) => { setApps(...
2
votes
1answer
35 views

Read Time Out - First HTTP request - rest

Http request using restAPI : public static String sendFormHttp(Opportunity opportunity, List<Easy_Send_Form_Mapping__mdt> mappingList, Map<String, String> systemVariableMap){ ...
0
votes
0answers
31 views

How can I disable my existing Apex REST Webservice in production?

I have an existing Apex REST Webservice configured in production for consumption by a partner for Lead creation. However, we are not working with that partner anymore and hence want to disable this ...
1
vote
1answer
646 views

OAuth token request via username and password in python

All this while it was working and not sure what have changed. The point of failure is within this code block import urllib2 url = 'https://test.salesforce.com/services/oauth2/token' data = '&...
0
votes
0answers
8 views

OBJ: Product2 - Scheduling is not enabled for this type: Revenue Schedule Type Via OData

We just enabled revenue scheduling for client as soon as we enable revenue schedule, we no longger able to edit or create product via REST API, and receiving "OBJ: Product2 - Scheduling is not enabled ...
0
votes
2answers
383 views

Save multiple records on one API call

There's an image of investment declaration form. This module is in web application project, where an employee can declare his yearly investment and finally save it. After saving the document page my ...
0
votes
1answer
556 views

Wrong instance url while generating the token for OAuth 2.0 authentication

I am a novice in salesforce. I have access to multiple sandbox instances of salesforce. I am trying to do an OAuth2.0 authentication and call some rest api. But when I request for the token, in the ...
1
vote
0answers
48 views

Amazon S3 Rest API Integration Error

I am new to AWS. I am sending attachment data from Salesforce to AWS S3 using Rest API. But it is giving following error : The authorization mechanism you have provided is not supported. Please use ...
0
votes
2answers
344 views

Whats the simplest way to make Rest API Calls from Salesforce to Marketing Cloud without involving App Center

I wish to make Rest API Calls to Marketing Cloud for an update in Salesforce instance sending emails through Marketing cloud to Customers. When I researched on how to implement it, It has a basic ...
1
vote
0answers
472 views

Pardot API and custom fields in email templates

I'm using the Pardot REST API to send emails documented here: http://developer.pardot.com/kb/api-version-4/emails/#sending-one-to-one-emails It's all great but I would like to set custom fields in ...
0
votes
1answer
18 views

Can we run Scheduler class through another org?

I have a issue ,I have a source org and a target org ,i run a scheduler class from source org and it send data to taget org .Now i want to reschedule source org Scheduler class from target org . How ...
0
votes
1answer
668 views

Update Contact in Marketing Cloud with REST API

Our shop is running on Salesforce Commerce Cloud (former Demandware) so we use DemadwareScript/JavaScript and Pipelines in the Salesforce Commerce Cloud UX Studio Environment. The task that I am ...
1
vote
1answer
607 views

Retrieving a Document's body with Python + REST API

I am trying to retrieve a documents body via the REST API with Python, but am unable to actually get a response back. Here is a snippet of my code: header = {'Authorization': 'Bearer ' + self....