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
1answer
35 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
1answer
144 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
134 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....
-3
votes
4answers
180 views

Apex Callout, how to set body? [closed]

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
147 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
31 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
69 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
51 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
46 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
78 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
24 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
34 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
30 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
252 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
46 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
33 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
1answer
46 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
67 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
1answer
46 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
164 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
189 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
95 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. ...
-1
votes
1answer
96 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
33 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
32 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
74 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
40 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
66 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
187 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
21 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
1answer
49 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
68 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
23 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 ...
2
votes
0answers
53 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
45 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
44 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'...
2
votes
0answers
26 views

Automatic field reversal on API actions

I've got a Python app that's using the simple-salesforce Salesforce API client. One operation that it performs is automatic re-assignment of contact owners based on the owner of the respective account,...
3
votes
0answers
56 views

Generating email in 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
43 views

cURL “event not find” error with Salesforce Access_Token

I have an error with this cURL command: curl https://myInstance.my.salesforce.com/services/data/v44.0/ -H "Authorization: Bearer 00D1l0000008e75!AQMAQJiLSTqCI5o..O5u3MJ9cDVg8hJJdIUe63mXGN.X..." -H "X-...
0
votes
1answer
30 views

How to transfer files from Salesforce to Sharepoint Online [closed]

The use case would be that a file is uploaded to Salesforce but it should be saved in Sharepoint. How do I do it? I saw a post about making a REST call and having that do the trick but I don't ...
1
vote
1answer
20 views

How to Display Report Table in a Third Party Web App

New to salesforce, here! I would like to display a Report from SalesForce in a third party app. It is effectively just a datatable. I've been reading various documents in the developer site but I ...
0
votes
3answers
61 views

Creating an endpoint in salesforce for our external service to access data

I started reading on REST API’s and have created this class to view order tracking information: @RestResource(urlMapping=‘/Tracking/*') global without sharing class TrackingRest_Service { @...
1
vote
0answers
42 views

Using Named Credential URL in Apex Class returning null static resource in test class

I am implementing Named Credentials to replace how we do callout for a certain endpoint. One of my current test methods looks something like this: @isTest private static void test_method1() { ...
0
votes
1answer
32 views

How do I specify profile mappings on a PackageInstallRequest?

I have created an unmanaged package containing a Salesforce Platform Profile named "Foo". In the org where I am attempting to install the package, I have also created a Salesforce Platform Profile ...
-2
votes
1answer
18 views

How to get all opportunities owned by a salesforce account using their rest api?

I see there are ways to create, delete, read individual opportunities here: https://developer.salesforce.com/docs/api-explorer/sobject/Opportunity How to get all opportunities owned by a salesforce ...
0
votes
1answer
58 views

REST API apex - send and receive within a same class

I'm wondering, Is there an option to receive data with @HTTPGET --> Make some manipulation on this data --> Create new REST request and send it to different URL - On the same Class? Thanks
2
votes
1answer
71 views

What is the best way to run test classes from Apex code? SOAP Apis or Rest API?

To run all tests or specific test classes we can use both the APIs SOAP and Rest API. Below are the differences that I noticed when done research on both. All test SOAP - Possible, Without ...
0
votes
1answer
127 views

REST api to upload multiple notes and attachments at once

I am working on an app that allows customers to upload images, video, (even gif) into my app. Once the case is processed on my app, I want to place those media files into Salesforce. I have a case ...
2
votes
0answers
31 views

Bug: blank locationsNotCovered returned from REST: /tooling/runTestsSynchronous/

Starting a few days ago SFDC sandboxes upgraded to Winter 19 started to return blank locationsNotCovered node in /tooling/runTestsSynchronous/ result For example - a basic call with 1 test class like ...
0
votes
1answer
75 views

Trouble Using Bulk API 2.0 Multipart Request

I am sending up this payload --BOUNDARY Content-Type: application/json; charset=utf-8 Content-Disposition: form-data; name="job" {"columnDelimeter":",","contentType":"CSV","lineEnding":"\r\n","object"...