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
29 views

How to elegantly handle asynchronous pushes from Salesforce to external system via a REST API

The key word in the question is elegantly; I'm an experienced developer familiar with the mechanics of asynchronous programming, REST APIs, database triggers, programming idioms and design patterns. ...
1
vote
1answer
22 views

ui-api within a composite api

I'm looking on an approach to create a ui-api request within a composite api request and its always returning me a response as "The requested resource does not exist". Following is a simple GET ...
0
votes
1answer
39 views

Possible to retrieve data from data extension using soap?

I've done a bit of research and turns out it is possible to retrieve data from Data Extension with SOAP but not with REST. So far I've only seen examples of importing data to Data Extension but not ...
0
votes
1answer
25 views

Marketing Cloud - Create Data Extension (Rest API) [on hold]

Is possible to create a Data Extension in Marketing Cloud using Rest API? if yes, can provide one example?
0
votes
1answer
50 views

How to insert and update records in bulk using postman [on hold]

I got the response from the apex rest class as shown in the image.I have a requirement like i need to insert and update bulk records into salesforce via postman by sending JSON requests.Currently i am ...
3
votes
0answers
52 views

Making concurrent REST API requests to Marketing Cloud

I'm trying to understand how rate limiting works for REST API calls. I was informed that it's based on the number of concurrent requests, which I can live with, but I can't figure out what the ...
4
votes
2answers
268 views

Assertions In A Mock Callout Test

Working on my first call out class. When a contact is created or has an email changed we need to make a call out to a third party service that verifies the email address. Everything is working excep ...
0
votes
0answers
50 views

How to do POST after getting authorisation token and instance url (in Java or Javascript)?

I am trying to hit Apex classes directly via a simple web-page interface. I have a requirement where I am supposed to directly hit Apex classes and get results after performing CRM operations. The ...
0
votes
0answers
26 views

Record not visible for Community users through Apex class

We have an Apex class which provides data for our mobile app(sdk not sf1) through an API. This app users are of community users. The Apex class used here is declared as Without Sharing but when users ...
0
votes
2answers
29 views

How to get session id of a particular user in Salesforce

Is there any way to get session id of a user so that I want to use it in REST API call in Postman to view the response. When I do the api call using my session id, we are recieving invalid user ...
0
votes
1answer
41 views

Issue with REST API in Production

We have a mobile app(Not Salesforce1) where the data is pulled from Salesforce using REST API. The basic functionality of the app is to return GranChild records when any Search Term is entered in ...
2
votes
1answer
15 views

How to update child in Master-Detail relationship with REST API?

I have a Master-Detail relationship with Accounts and Locations. I am able to create the child using upsert, but when I try to update the Account__c field I get (INVALID_FIELD_FOR_INSERT_UPDATE: ...
1
vote
1answer
24 views

[Trailhead][Apex Rest Callout] I failed run test because of JSONException

When I studied Apex REST Callouts, I faced with JSONException in Test Callouts section. How can I solve this problem? I made prerequisites(AnimalsCallouts.cls, Static Resource) and made test class(...
0
votes
2answers
26 views

How to get test coverage of org while running validation jobs?

In our CI process, we trigger a job for validation in Jenkins and have an ant target which runs the validation first with checkOnly as true and runs all the tests. build.xml : <target name="...
0
votes
0answers
12 views

How to List Jobs with the REST API?

My problem is that I can't list job postings from Sage People API. I managed to authorize my web application and get an access token. Now I only need to know the correct way to consume the API. What ...
0
votes
0answers
24 views

Salesforce Integration with SendGrid [closed]

I am curious about how to integrate Salesforce with SendGrid to send Mass emails from the personal Email IDs of our Users. There is no proper documentation available in the internet and Zapier didn't ...
0
votes
1answer
20 views

Using autonumber field type as externalId to make an upsert & store values in a Map from soql by external id

I know that those questions asked a few times here - but I saw that it little old (Greater than 3 years) and\or it doesn't have the "best answer" so I hope something changed about it. 1) Is there a ...
5
votes
0answers
40 views

Issue with receiving HTTP with Content-Type:application/x-www-form-urlencoded

I've faced a strange issue during my development related to the API. My goal was to create a web service that will receive POST requests from different sources. First service: It passes all the ...
0
votes
2answers
34 views

to access username field using LoginHistory Object

I am trying to access Username field (which is present in User Object) Using LoginHistory Object as follow: SELECT+Username+FROM+LoginHistory but is shows below error: [{"message":"\nSELECT ...
0
votes
0answers
16 views

Parameters in Rest API Callout url

I have a requirement to pass parameters which acts as filters in the rest API callout from salesforce. The url is https://pmobilet.electra.co.il/odata/Priority/tabula.ini/elecisr/ELC_SMAXPART?$...
1
vote
2answers
30 views

REST api - Update email and status subscriber into AllSubscribers

I am studing the api call to insert/update (upsert) one or more subscribers both in a dedicated data extension and AllSubscribers at the same time. I found this api calls: - https://developer....
0
votes
1answer
23 views

JSON structure in Salesforce?

How would i store this kind of JSON structure in salesforce? "elementOne": [ { "itemOne":"valueOne", "itemTwo":"valueTw0", "embeddedElementOne":{"embeddedItemOne":"embeddedValueOne"}, ...
0
votes
0answers
12 views

Connection from Android mobile sdk to the Einstein Vision Services

i am looking for a way to send Rest-Requests to the Einstein Vision Rest-API via Android. The integrated RestRequest class somehow only supports Requests to the Salesforce Platform and doesn't let me ...
0
votes
0answers
13 views

Salesforce REST API Call to an External API (IdentityServer3) Login Error

I have a project where I need to connect to an API to get data. I tested the API in postman and I'am able to get data, but when I try to connect from Salesforce I having a problem in authentication. ...
0
votes
1answer
18 views

Using getRESTAPISessionKey from Lightning Container

Does anyone know how to properly call into RESTApi using LCC.getRESTAPISessionKey()? For example from https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/...
1
vote
1answer
22 views

Is there a better rest endpoint for downloading file contents?

I'm trying to use https://[domain]/sfc/servlet.shepherd/version/download/ to download files (lightning files not attachments) from salesforce and it works sometimes and I can get it to work in postman ...
0
votes
1answer
21 views

Apex Rest API : Is it possible to support accept parameter with “plain/text”

I am trying to implement a webhook from a 3rd party application (Eventbrite) using a Custom REST API in Salesforce.The issue here is that 3rd party API uses "Accept: text/plain" parameter in their ...
2
votes
1answer
76 views

How to retrieve records from data extension of different business unit using AMPScript REST API call and also how to insert record

I am using this call in AMPScript To retrieve: https://www.exacttargetapis.com/data/v1/customobjectdata/key/[Data extension key]?$filter= Name%20eq%20'Test' To insert: https://www.exacttargetapis.com/...
0
votes
1answer
25 views

How to post a financial force sales invoice

We are working with the Salesforce REST API for interacting with an installed FinancialForce package. This process has been mostly painless right up until we needed to POST an invoice. The apex ...
0
votes
0answers
17 views

generate request to upload file via rest api axway

I a creating an rest api at apex class to post a file upload but each time i am getting an Bad request, i have tried everything but still no breakthrough. Here is my code as using the blob method to ...
0
votes
1answer
27 views

Deploying Metadata with rest resources

As of API 43 there seems to have been some rest resources added to the metadata api. This Documentation Seems to be lacking the ability to tell me how they want me to send the zip package with the ...
1
vote
2answers
49 views

Send multiple json message

I try to send multiple message using REST to this url : https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:{key}/send. My json look like this : [ { "From": {}, "To": { ...
0
votes
0answers
11 views

Help me with Test class for REST API POST method . not able to cover this part of code [duplicate]

CallOut Method: public static void callout(String jsonString, String jsonStringWS, List lstId){ //do callout here rest or soap System.debug('jsonString>:'+jsonString); System....
1
vote
1answer
18 views

Retrieving enterprise WSDL via SOAP API endpoint?

Is there an endpoint to retrieve the enterprise WSDL file via salesforce (SOAP) API? All I found is the option to retrieve it via standard curl request but I would expect that there is an official ...
0
votes
1answer
25 views

Metadata Rest API for custom objects

Is it possible to create and update custom objects using rest? I seen different questions that suggest it isn't yet available without using a client or SOAP but I need to be able to access it through ...
0
votes
2answers
17 views

Rest API Composite - Error 302

I am using Composite API to get the opportunity record but facing 302 error { "compositeRequest" : [ { "method" : "GET", "url" : "/services/data/v42.0/query/?q=select+id,...
1
vote
1answer
15 views

How to enable read permissions for organization sobject?

I'm trying to use the salesforce standard rest api to access the organization sobject so I can read the name of an organization I'm working with. I make a soql query "SELECT Id,Name FROM Organization ...
0
votes
0answers
23 views

Record Lock Issue for REST endpoint

I have built a REST endpoint, which writes data(Accounts) to Salesforce. Currently, for a single record, there could be multiple (20-30 times) upserts within 1-to-5 seconds. Behind the scenes, it's a ...
0
votes
1answer
24 views

WB REST API POST

I need connect an application with salesforce. This aplication will send data to the system, and salesforce work with them. In this case, in the third application, user choose products. When user ...
0
votes
0answers
9 views

Associating Knowledge articles with categories using REST API

The SOAP API suggests that articles can be associated with categories using Article Type__DataCategorySelection. I can't find information about using the REST API to do this and I've had no luck using ...
1
vote
1answer
21 views

React Mobile App & Salesforce [closed]

We are building a Mobile App (using React Native) which will allow users (of Persona-A) to login via External Identity Provider. We have another set of users (Persona-B) who login to Salesforce Custom ...
1
vote
2answers
52 views

API post call returns lots of addition text

https://api.ivr-platform.com/api/token-auth after submission this doesn't return just the json object but the entire webpage with a json object in the text. public without sharing class ...
-1
votes
1answer
20 views

Creating and populating reports through api [closed]

Is it possible to create and populate a report using data that isn't in salesforce already? Like populating a table? Please give an example/source if you can.
3
votes
1answer
355 views

Salesforce opportunity stages

Is that possible to get the stage name, probability and forecast category using SOQL/Apex/APIs ? and I could not find that you can pull that data.
4
votes
0answers
21 views

Calling the UI Api from a community with a custom domain name - getting sun.validator exception [duplicate]

Context: we're using the UI api to get some Record Type dependent picklist values back. This is happening in a community context. In the lower environments (dev, QA) this works without issue. The ...
0
votes
0answers
30 views

Getting 400 bad request with Salesforce API at User creation

I used this payload to create a user on Salesforce. But the response contains a 400 Bad Request message. I'm using salesforce version 45.0 and use WSO2 Identity server as the provisioning client. This ...
-1
votes
2answers
71 views

How to call a third party api from salesforce

I am into a integration project and its new to me, till now I have share the standard Salesfroce REST API, apex class to get and post data from third party website. Now the third party webite as a api ...
0
votes
0answers
15 views

Create Salesforce Community User using Rest API [duplicate]

I am trying to figure out if it is possible to create a Salesforce Community User using the REST API. I would use a kind of Site.createPortalUser() method to create the Account, Contact and User in ...
-1
votes
0answers
37 views

Can we call REST API callouts from RESTResource [closed]

I'm receiving some values from the third party server in a RESTresourse class. Now I need to validate those values. So, I'm calling REST API callout inside of that method. This can be achieved by any ...
1
vote
0answers
23 views

Current currency mode of an salesforce org

Ran into a scenario where an org enabled advanced multi currency and populated records and decided to switch back to basic currency. They didn't delete records in the DatedCurrencyRate table after ...