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

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

API to Create and Delete a Relationship Object

In our sandbox, we have created Student, Role, and StudentRoleRelationship objects. Currently, we have a Drupal project that has its own Student and Role objects, therefore in Student and Role we have ...
1
vote
0answers
13 views

API Integration - Professional Edition

We are currently integrating with a payment provider wherein we send some request and get some response. The payment provider then does a callback and posts the status after some time for the request ...
0
votes
0answers
18 views

Limits API callout in Apex

I want to receive daily limit from apex. There is my code public static HttpResponse getLimits() { HttpRequest req = new HttpRequest(); Http http = new Http(); req.setMethod('GET'); ...
1
vote
2answers
33 views

SOAP and REST API

What is the difference between SOAP and REST APIs. Can someone please explain with the scenarios which one I need to pick for which type of scenarios?
1
vote
1answer
17 views

How to use REST API (or preferably Restforce) to upsert and only update when field is blank?

I want to upsert Leads with the following rules: Match by Email If match is found, only update fields that are blank. Is it possible to do this by using API upsert? Is it possible to do it with ...
5
votes
1answer
39 views

Implement pagination on APEX REST Endpoints

I am working on a Apex REST framework that acts as an abstraction layer to make it easier for all our other systems to consume data from salesforce (i.e. consistent naming scheme for field names, ...
1
vote
0answers
21 views

How to send SFMC SMS via external API?

I'm trying to trigger SFMC REST API to send SMS from Postman. Below is the steps: Created a Outbound SMS content in Mobile Connect (with the following properties) Template type: Outbound - API ...
1
vote
1answer
28 views

How to specify the Lead owner when creating with REST API?

I searched through the documentation and it seems Lead creation is done by sending a hash of attributes. How do you specify the Lead owner? By email? User ID? Is there any documentation?
4
votes
2answers
65 views

Standard invocable actions API: How to detect whether an input expects an array?

I'm working on some functionality that calls some standard invocable actions via Salesforce's REST API (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/...
0
votes
1answer
25 views

Keep SFDC Session alive

We have developed a web portal outside salesforce while using Salesforce as an identity provider. For the time being, we have some VF pages exposed within iFrames. Many of you know how these .. '...
0
votes
0answers
32 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
3answers
62 views

REST API Call Journey through Postman

I'm trying to make an API call through POSTMAN to trigger a journey, but when I doing that I am getting Error: 596 Service Not Found PostMan Call: Host: https://************.rest....
-2
votes
4answers
56 views

Apex Callout, how to set body?

I am struggling to configure body for http request. This is what I have received from integration team. "body": { "mode": "formdata", "formdata": [ { "key": "sourceFile", ...
1
vote
2answers
106 views

How to resolve Webcallout error System.LimitException: Too many callouts: 101 when displaying data on Lightning component

I'm making a webservice callout to an external webservice and displaying data on a Lightning component. Data is returned in JSON format in multiple pages. Each page has 50 records. In my apex ...
2
votes
2answers
24 views

How to read REQUEST body

I have created a REST Endpoint (exposed on force.com site) to allow Webhook messages. The third party service will POST data to the webhook that looks like this: Body: { "channel": "server", "...
1
vote
1answer
43 views

Unsubscribe process on external page with update to _Unsubscribe dataview

What I would like to achieve is an email unsubscribe process that is secure, performant and on an external page with the ability to update the internal system table (dataview) _Unsubscribe. How I ...
0
votes
1answer
32 views

How to get data from Marketing Cloud standard data views using REST API

I have a requirement where I have to get the data from Pre-defined data views eg: Send, Click etc. using REST API. I am not able to find a solution for the same. Has anyone tried to do the same thing?...
3
votes
1answer
39 views

Supply sObject record to process builder flow via REST API

I'm trying to invoke a custom flow (built via process builder) via REST API. The process begins with a contact record, This process starts when another process invokes it. Select an object ...
0
votes
1answer
37 views

APEX making HTTP Request, and It fails

I'm trying to make an http request, with the UserInfo.getSessionID(), in the authorization value, to https://{{INSTANCE}}.salesforce.com/services/data/v43/ui-api/record-ui/{{sObjectID}} and It ...
2
votes
0answers
18 views

Can you set a quota of API calls for a User/Site?

We are using a public Site to receive webhooks from a number of different system. Some of which are payments systems, one of which is for mass email. On the email system, it's useful to receive ...
0
votes
2answers
23 views

Notify or update salesforce records from external application

As Integration part is new to me so, tried little demo project which gets the external data and creates the record in custom object or so from a button click. Using HttpRequest method did all the API ...
1
vote
1answer
17 views

How to query contentversion to Email Message

We have integrated Salesfroce and our Support Page, and I have to send emailmessage via rest api along with attachment lies within the email, but I don't find a relateionship between Contentversion ...
0
votes
2answers
52 views

How to remove key-value from JSON if it has empty value?

I have this inner Class which has contactInfo to be sent as JSON now I want to remove the one key value if that has empty value: public class ContactInfo { public String town; public ...
0
votes
1answer
34 views

Limits of Batch, REST API: how to get 2000+ records, not just 250?

This code works, but I can get only 250 records even if on other side 2000+ records. I think my batch is incorrect. How can I make a few callouts per 1 time to get 2000+ records from service side? ...
0
votes
1answer
19 views

Malformed JSON: Expected '[': how to deserialize JSON with REST API?

Error: Malformed JSON: Expected '[' at the beginning of List/Set I think I have incorrect JSON.deserialize for my object. How can I fix it? I don't use a wrapper. List<Account> accList = new ...
0
votes
0answers
10 views

API_DISABLED_FOR_ORG: The REST API is not enabled for this Organization with Developer Edition

When I hover over the title, I am seeing the developer edition and there are many connected apps in my system and all were working before but suddenly I have started seeing this error ...
0
votes
1answer
33 views

How to deserialize and parse JSON data to get particular values from the response

my http response is as shown: {"controllerValues":{},"defaultValue":null,"eTag":"31935b5a76250197159c64a2a9ec8353","url":"/services/data/v43.0/ui-api/object-info/Opportunity/picklist-values/...
0
votes
1answer
21 views

Webservice request from SoapUI not returning results

I am working on an assignment where I need to setup a webservice in Salesforce. The other system will have a search screen on their side and they should be able to search Salesforce for list of ...
0
votes
0answers
15 views

How to have multiple filers

I my trying to narrow down my query by have more than one filter, within a REST API that allows me to enter Status, Case Number and Keyword within a account. Below the code. Below the code which ...
0
votes
1answer
26 views

Wrong date when converting datetime value to date field

I am using the REST API for creating a new Task record, including an Activity Date in the format YYYY-MM-DDThh:mm:ssZ. My current timezone is UTC+1. When submitting a date in the first hour of the ...
1
vote
1answer
51 views

/services/data/v43.0/sobjects/ContentVersion rest api Limitation

I'm using the standard rest API that salesforce suggest for upload files : /services/data/v43.0/sobjects/ContentVersion - and converting the file to base64 blob on the VersionData param. I want to ...
1
vote
1answer
105 views

Rest service class Is it possible to redirect to a record detailed page

In the rest service class, Is it possible to redirect to a record detail page of a object using an record?(assume that the record will get in class) see below code @RestResource(urlmapping = '/test/*'...
8
votes
1answer
63 views

Handing REST API POST Exceptions using SSJS Try-Catch on a Landing Page Form Submission with AMPSCRIPT

I have an issue with a landing page containing a webform that submits input from the user and using AMPSCRIPT I make a Rest API call using the HTTPPost2 function to utilize the validateEmail resource. ...
0
votes
0answers
15 views

request.patch composite api duplicate value found: <unknown> duplicates value on record with id: <unknown>

I have googled and looked around for solutions with no real luck. I am switching over from bulk api to composite api and I am getting some upsert errors with current unique externalid's. CASE 1: ...
-1
votes
1answer
35 views

How To Redirect Url Restapi to salesforce

I am creating a rest Service and its integrated with external system and sending data to external system through lightning component and its working fine while sending the data from Salesforce. while ...
1
vote
1answer
29 views

Pass mulitple parameters in REST API

I am fairly new to Rest API concept and learning from forums. I have connected my two dev-orgs using Rest. So, when i create an Account record in source org, it gets created in destination org too. ...
1
vote
1answer
28 views

How to get our Salesforce org ready for APIs?

I need some guidance to understand how a certain API will work and the process of making it so. We have a third party online e-learning app (called bksb) where learners do assessments and we manually ...
0
votes
1answer
38 views

Upload Attachment via Rest API

I use standard Rest API (/services/data/v39.0/sobjects/Attachment) to upload attachment from our Support Portal and get saved in case object which works fine, but when I try to open the attachement ...
1
vote
1answer
26 views

Unauthorized endpoint error due to port 444?

I am getting error during callout although I have added the url in remote sites. Can this be due to port 444 which other system has provided? What I can do to fix this as this is external system url ...
2
votes
1answer
30 views

How to connect to a third party REST API using OAuth?

I have a third party REST API that needs to be called from Salesforce, using OAuth for authentication. Is this actually possible? If so, how? I really can't find anything useful on the web. For me, it ...
2
votes
1answer
47 views

Fetch dependent picklist values depending on record type

I have a two picklists PL1 and PL2. PL1 is controlling picklist and PL2 is dependent picklist. I want to fetch values of PL1 in Apex depending on recordTypes in Apex method, which I already have ...
2
votes
1answer
17 views

How to access specific mailing address field on person account through API?

I am trying to find out how to access each component of the mailing address on our person account object. The mailing address is on the contact but it's being display through the account. I'm having ...
0
votes
0answers
13 views

Making API Calls to tooling api from Lightning component [duplicate]

I am getting the following error when my lightning component controller is doing rest callouts to the salesforce tooling api {"message":"This session is not valid for use with the REST API","...
0
votes
1answer
27 views

Fuel-Rest API using Content Builder send to Data Extension

Is this even possible yet? I have gotten my script up to the point of creating HTML emails in Content Builder and as I understand it, I have three options from there: Send it to a Journey step. My ...
0
votes
2answers
15 views

C# REST API “PATCH” workaround

Has anyone had any luck getting a PATCH or other method to update an object to work in the REST API in C#? Whenever I try to use patch I get this response StatusCode: 405, ReasonPhrase: 'Method Not ...
0
votes
1answer
18 views

Content Builder REST API - Retrieve Email and approvals

Does anyone know how to retrieve email and its approval status? I checked on marketing cloud documentation but couldn't find the property to do so. I am trying to retrieve and filter for email that ...
-1
votes
0answers
36 views

Upload File to Specific Account via REST API

I've found how I can upload a file to the Files section within Salesforce (by way of the /connect/files/users/userId route); however, I can't upload directly to an Account's File section. Here's ...
2
votes
0answers
46 views

Getting FullName from Tooling API gives FIELD_INTEGRITY_EXCEPTION

I need to get the API names of all layouts in my salesforce org.I have used composite metadata api to perform queries in batch of 5 and then get the FullName.It works fine but i get a field integrity ...
0
votes
1answer
44 views

How to parse the response in Rest Service [closed]

I am getting response with below format from external system and I struggling to parse this response because this format is build by external system not in salesforce. Response: NEW_ITEM-...
1
vote
1answer
32 views

Understanding the refresh token workflow

I am new to Salesforce and my current goal is to ensure that my application never is prompted to give user credentials when making an API call. I see that this is the point of the refresh token, but I'...