Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
2answers
18 views

RestResource HttpPost - 401 Unauthorized - INVALID_SESSION_ID

I am attempting to call a RestResource HttpPost method, but receive an INVALID_SESSION_ID response. [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}] Apex Code (version 43):...
0
votes
0answers
6 views

Is there a concurrent API limit on calls to /login/salesforce/authorize

Our Application is iFramed and we have implemented Salesforce SSO using web flow we have implemented 4 iframe component of our application and these components lie under the accounts in the cusotmer ...
0
votes
0answers
14 views

Problem Creating Job for “Attachment” Object in Bulk API 2.0

I am using Bulk API 2.0 Rest api for uploading Bulk of data. I am not able to create job for object "Attachment" and some related objects that take attachment as body. I am using the this api to ...
-1
votes
0answers
17 views

Not able to authenticate aws from apex in salesforce

Continuing from my old thread https://salesforce.stackexchange.com/a/228572/59004 Thanks for pointing out the mistakes ,I corrected some after going through the AWS doc as suggested by you however I ...
0
votes
0answers
16 views

ClassCastException on APIObject to DataExtensionObject when we upgraded to java 8

When we switched from a java 6 to java 8 application server environment we got this runtime ClassCastException when we call the MC API java.lang.ClassCastException: hbs.schoolwide.hbsMessaging....
0
votes
1answer
18 views

Create Installed Package Into Business Unit (Account) Via API

We are moving from the old SOAP API to the new REST API to publish into Content Builder. As a result we need to create installed packages inside our clients SFMC accounts so we can get tokens to use ...
1
vote
1answer
24 views

Not able to authenticate aws from apex

Below is the code I'm running from apex execute. Error received - signature mismatch error... Able to authenticate using postman String formattedDateString = Datetime.now().formatgmt('yyyyMMdd\'T\'...
2
votes
1answer
22 views

no response when calling rest api from javascirpt function

i have two org, first org i have written code for GET method, Second org i am calling a the rest api GET method from javascipt code. in the calling org i dont get any response but it response with ...
0
votes
1answer
16 views

Marketing Cloud sending Content Builder Email to List

I have created a list (using SOAP API) and know the ID of this. The HTML Email exists in Content Builder, I know the name and the ID. How can I send the email to the list. This is not a triggered ...
0
votes
1answer
49 views

Status Returned 200 but response body is blank

I'm new to integration. I am going to generate an access token for the third-party application. I tried to build following javascript request in sfdc. But the response body is blank. I need to ...
0
votes
1answer
32 views

How to Generate Access token in rest api with apex [closed]

I'm new to integration. I want to post a field value to other external application. So, the third party is using OAuth 2.0 Security. I'm going to generate access token through client key. They ...
1
vote
1answer
17 views

Salesforce Bulk APi Session Id

I have used the salesforce REST API a ton in the past, but I am at the point where I need more speed for fetching/inserting/updating a large number of records at once. I have a remote application ...
0
votes
0answers
11 views

Is it possible to search Task or Event(activities) with parameterizedSearch REST API?

I'm using this endpoint /vXX.X/parameterizedSearch/?q=search string, it works ok except, it doesn't work for Task and Event. I have this error: errorMsg: "sObject type 'Event' is not supported in ...
2
votes
3answers
123 views

Getting JSON_PARSER_ERROR while parsing JSON

What am i doing wrong due to which i am getting JSON_PARSER_ERROR, I am using code below to parse json below : @RestResource(urlMapping='/Imbellus/CandidateScore') global with sharing class ...
0
votes
1answer
18 views

DELETE Dependencies REST API DELETE_FAILED

When attempting to use REST API to delete multiple object records like so: h t t p s://org.my.salesforce.com/services/data/v42.0/composite/sobjects?ids=0010x000000000,a1r0x000000001,a1m0x000000002,...
0
votes
2answers
34 views

Need to pass Field api name and its value in API call using field set [closed]

Need to make the requested body for Rest POST call in which key(API name) and value both go dynamically in JSON format. API name comes from field set and its value come from the database using query. ...
0
votes
0answers
6 views

Can I update multiple currencies in a single Rest Call?

I need to update our currencies and doing that via a REST call, been initiated by an Apex class. Is it possible to update all my currencies in a single call? I have based my solution on the ...
0
votes
1answer
20 views

Connect to SFMC accounts via REST API with Username and Password - Not Key

I work at a software company that pushes emails from our app into SFMC. We were using the old SOAP API to connect to client accounts previously, but this is being deprecated and we need to push to ...
1
vote
0answers
18 views

Unable to set Null to any dateType field to Salesforce using Force.com

I have tried the below code. This works when I assign some valid date to the field (of Date Type), but unable to set null to it : var auth = new AuthenticationClient(); await auth....
0
votes
0answers
20 views

Get more then 2000 records in listview API

My Contact Listview has 5000 records and I want to get all the records using Listview API . I can use offset upto 2000 which means I can query 4000 in total . Is there any other way I can get all 5000 ...
2
votes
1answer
22 views

Ramdom failure on https://login.salesforce.com/services/oauth2/token request

I am connecting with the Salesforce API using OAuth, refresh_token, client_id & client_secret. API calls are failing randomly with, it's not every API call but 1 in 100 or sometime in 1000 will ...
0
votes
2answers
25 views

Clear platform event limits?

Where can I find clear docs on the API limits for sending platform events IN to sfdc? The platform events basics trailhead notes that: provides allocations for how many events you can define in ...
1
vote
1answer
39 views

External user upload file

We're trying to allow Customer Community Users to upload files using our portal. When I try to use the REST API to upload a file I get a 403 Forbidden response. The response body has message":"API is ...
1
vote
1answer
37 views

How do i check if a user logged into salesforce from javascript? Either through api or reading cookie value [closed]

We want to allow users who are already logged into salesforce and have access to our application to continue to our application home page without going through the login flow , if not we want to take ...
2
votes
1answer
48 views

How to properly handle dates returned from REST API

So it appears that when returning a DATE field from the REST API, that salesforce does NOT convert it to UTC (Doesn't return any time-zone information, just a YYYY-MM-DD string. Instead it returns ...
3
votes
1answer
25 views

HealthCloud HL7 REST API Specification

I'm working to implement HealthCloud with an external system. HealthCloud provides the services/apexrest/HealthCloudGA/HL7 REST endpoint to accept HL7 messages and parse them into the Electronic ...
0
votes
0answers
14 views

Search and view data from external database

I have a business requirement to create a way for users to search and view results from an external database (Snowflake) in Salesforce. I have created a simple visualforce page and need to send a ...
-2
votes
1answer
27 views

I need to sent the body in form of Form data

I am posting the data to endpoint url through http callouts from developer console and getting response "200 ok" and in body of response i am getting an error message of "{"IsSuccess":false,"...
0
votes
1answer
28 views

How to Create Workflow through apex class?

Is there any workaround to create Workflow through apex? I'm trying to use the MetadataService.cls but I am not able to achieve that. Any help will really helpful for me.
0
votes
0answers
61 views

PATCH/PUT Rest - List of sObjects

I would like to create a API Rest where my endpoint receive a list of Accounts in JSON, the list contains few fields of the account with the new values to update. This is my actual code, but it works ...
0
votes
0answers
15 views

Bulk API with PK-Chunking creates huge sets of batches when query is with where clause and subset of the records needs to be extracted

We have a Java API which uses Bulk API to extract records from an Object. The "select query" has a where clause, which should extract a subset of records, to honour the where clause, but we see that ...
3
votes
0answers
27 views

Creating child relationship with reference fails via Composite Tree REST API

In my setup, Leads can have multiple Affiliates (custom object Affiliate__c), which is implemented through a child relationship and where each Affiliate consists of a name and the two related objects: ...
2
votes
2answers
68 views

OAuth flow for using my app as the authenticator

I'm using SF Restful API to develop an app. A generic use case of the app would be: User logs into the app (app specific credentials) User requests data available @ SF. App knows that user is allowed ...
0
votes
1answer
75 views

What is the benefit of “Inserting New Records Using Id as the External ID”?

I recently read the REST API doc about SObject upsert endpoint, which accepts Id field as the External ID. "Inserting New Records Using Id as the External ID" https://developer.salesforce.com/docs/...
2
votes
0answers
27 views

Platform Events allow REST API JSON inputs to bypass field Required-ness?

We are finding that when feeding data to a SF Platform Event via the REST API (/services/data/v43.0/sobjects/My_Pletform_Event__e), Required field inputs can bypass endpoint validation by supplying an ...
1
vote
1answer
24 views

BULK API V43 Pass Date/Time Value

I am trying to make a PUT call via fiddler passing in Content-Type: text/csv. I am able to pass in all fields, however it fails on one of the fields that requires a date/time value. I am passing in ...
0
votes
1answer
55 views

Inserting rows to a DataExtension via API

I've been trying for the last couple of hours to insert some rows into one of my Data Extensions in Marketing Cloud, which looks like this: According to the documentation, I would just have to call ...
1
vote
1answer
97 views

Add subscriber REST/Node.js Marketing Cloud Email Studio

Is there still no way to add subscribers via the REST API and/or Node.js? Trying to build a very simple custom signup form to add emails to Email Studio. Am I going to have to use SOAP + PHP? UPDATE:...
0
votes
0answers
24 views

Is there a way to create an OpenAPI / Swagger spec for my Salesforce Account?

I've been using the Saleforce REST API for a while and I'm interested in using an OpenAPI / Swagger spec to auto-generate a SDK using OpenAPI Generator and Swagger Codegen. Is there a way to get an ...
2
votes
2answers
32 views

How can a REST Site Guest User trigger a Push Notification in Salesforce1?

I'm using the Twilio API to send SMS text messages to my app via HTTP POST coming into a REST site on my org. When the message comes in, a Message__c record is created and attached to a parent ...
1
vote
1answer
26 views

How can I create a queue group via the API

So in testing, I've figured out that a queue is a type of Group. I'm trying to POST a new group, then change its Type from "regular" to "queue", but in doing so, I get this error message: Unable to ...
0
votes
1answer
20 views

Does Twilio Salesforce Helper Library support the new Passthrough API

I am working on setting up a Salesforce Helper Library to send SMS's from Salesforce using Apex. I am able to send SMS's 1 by 1 using the information from their documentation. I came across an ...
0
votes
1answer
38 views

Fetching woo commerce orders table in salesforce

What I want to do: I want to fetch my woocommerce data to my salesforce. And I don't want to use plugins. So, I started this whole thing by using REST API. What I am thinking: I will call the http ...
1
vote
0answers
18 views

Customer Sending an Attachment Live Agent with REST API

I'm trying to integrate my apps with salesforce Live Agent through REST API. I already read the Guide here (https://resources.docs.salesforce.com/212/latest/en-us/sfdc/pdf/live_agent_rest.pdf), but I ...
0
votes
0answers
21 views

Visualforce iframes don't work from mobile app

I need to include an external website inside a page or redirect the page viewer to an external website. To achieve this I tried a few methods: Visualforce page with javascript that redirects - this ...
1
vote
1answer
68 views

Sending a batch of emails via Marketing Cloud but triggered in Sales Cloud

I recently came up with a business requirement that I'm not sure how to implement. Our product owner basically wants to: Send a set of email reminders to the main contact role associated with an ...
0
votes
1answer
51 views

Update the image in folder using REST API

Im using a rest api to upload images or text in marketing cloud content builder, i have created a folder inside the content builder(folder name: Content Area) and i want to push the data inside this ...
1
vote
1answer
69 views

How to send and test a response from a Rest webservice in workbench

Is it possible to send a response message from a rest webservice? I have the following : @RestResource(urlMapping='/*') global with sharing class RestResource { @HttpGet webservice ...
1
vote
1answer
27 views

Add visualforce page to a Page Layout using REST API access

is it possible creating a Visualforce page (containing APEX code) and add it to a Page Layout using the REST API? I couldn't find any information about that.
1
vote
2answers
32 views

Salesforce Server-To-Server API authentication

I'm writing a python application which shows some metrics about an organization. However, I'm running into two problems: There are no service accounts - I need to fetch information from Salesforce ...