The REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

learn more… | top users | synonyms

1
vote
1answer
25 views

How can I look up a user via their session id?

I have a custom link in Salesforce that passes the session id of the currently logged in user (over HTTPS). I'd like my application to be able to take the session id and look up the username of that ...
3
votes
1answer
54 views

“CERT_UNTRUSTED” error on Salesforce API requests

I'm using nForce with NodeJS on Heroku, and today, out of the blue, we've started getting "CERT_ERROR" back from Salesforce on any request made, even though the authentication is being performed ...
4
votes
1answer
115 views

REST API return dummy data not visible from the web

I'm playing with the REST API using PHP. I have managed to connect successfully and to run some SOQL queries. I want to fetch all the emails of every Contact entity in my instance so I run the ...
1
vote
0answers
18 views

REST API For exact target. Add subscribers to lists

We have a email subscribe form that will add users to Email lists they select in the interface. I am trying to find REST API documentation for Exact Target that will allow us to do the following: 1. ...
0
votes
0answers
22 views

Rest API Lessons [on hold]

I'm trying to teach a non-cloud programmer how it is that he can sign people up for our Salesforce Community using the REST API from one of our websites. I created a Connected App. I gave him various ...
0
votes
0answers
18 views

Can an API user be set inactive automatically? API returned “cannot reparent record” for active user

I have a web application that uses the Salesforce API to create Contact, Account, Opportunity records. We set up an administrator user with full permissions to use as the Oauth login user, and I use ...
4
votes
1answer
22 views

API calls to backend from Salesforce flow

I'm trying to figure out how to create RESTful API calls to my backend from inside the Salesforce flow - for example i want to retrieve a field from my backend and then make a decision upon that ...
1
vote
0answers
13 views

Bulk API queue and REST API actions, any way to ensure sequence?

I have an app that perform some bulk operations but also requires real time updates for single records. I was thinking if there is a way to ensure that once the bulk action has been queued, any REST ...
1
vote
1answer
18 views

Do we always need “Consumer Key” for every client for Connected App?

I am trying to import datas to multiple SF clients (all of them are different companies). As soon as I saw on the internet, I can see that client needs to implement a connected app in order to enable ...
3
votes
1answer
50 views

API Calls on Others' Behalf

We have an external application which makes calls through the SOAP/REST APIs. Obviously this is through an Integration App Center account linked to our Exact Target account. How do we go about linking ...
0
votes
1answer
29 views

JSON structure to insert multiple Account records in one shot?

As per the documentation i understood that we can create account in the following way. Example for creating a new Account curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/ -H ...
1
vote
1answer
31 views

REST API access always returns invalid access when requesting Access Token

I am developing a C# console application that needs to connect to my company's Salesforce sandbox via the API to pull data. After some searching, I am using the nuget package DeveloperForce.Force to ...
0
votes
1answer
16 views

Salesforce org current datetime via rest api

How can I get salesforce org current datetime via rest api.?
2
votes
1answer
83 views

Salesforce Integration Where to Start

I started my career as a Salesforce Admin/ Developer(Pretty good at Apex/VF/Web development) and I don't have much knowledge on SOAP/REST integrations, I'm not even familiar with the terminology. Can ...
1
vote
1answer
29 views

Column not visible in apex, but is visible from REST

I am using the REST describe endpoint to present users with a list of all fields available to them on the Lead object, and then later attempting to use fields they have selected in a custom Apex ...
0
votes
0answers
21 views

Best way to notify users on Salesforce?

So I have an app/script that does a a bunch of data synchronizations from our own database to a salesforce database. I'm wondering what's the best way to notify users of an event on their salesforce ...
1
vote
1answer
21 views

Tooling API to get the ID of the field

Does the Tooling API count against the Org limit? I have a scenario in which I need to create custom button on related list and by pass record type selection page and re-direct to appropriate Page ...
1
vote
1answer
34 views

Exact Target SOAP API Authentication Issue

I'm having a hard time understanding the authentication model for the Exact Target APIs. The REST API requires a clientId and a clientSecret to obtain an access token for subsequent requests. Yet the ...
1
vote
1answer
25 views

How to generate HTTP body in Salesforce

How do you go about creating the actual HTTP body in Apex (assuming JSON content type)? I am trying to figure out a simple POST for the following: POST ...
1
vote
1answer
38 views

Error with creating a FeedElement with an attachment: You have sent us an Illegal URL or an improperly formatted request

I'm using the code below to create a feed element with an attachment, using Apache's HttpClient and Chatter REST API, v32.0. File feedElementDefinition = new File("feed3.txt"); String json = ...
1
vote
1answer
15 views

Can i get report data which is visible to a particular user via salesforce analytics?

I've gone through Salesforce Analytics Rest Api and implemented an apex class which will make rest call services/data/v32.0/analytics/reports/<reportId>?includeDetails=true and get report data ...
1
vote
1answer
29 views

Rest API PATCH method with Large Data Volumes

Are there any best practices relating to the use of the Rest API within an environment with large data volumes? I am aware of the SOQL best practices relating to LDV. Does this relate at all to ...
1
vote
1answer
21 views

How to insert into a record in object from one developer id throught another?

I have two salesforce account. username 1: XYZ username 2: ABC I have credentials for both accounts. What I want to do is that insert a record in X object lies in XYZ account through ABC account. Is ...
2
votes
0answers
33 views

Get Stages for Particular Opportunity Record Type via REST

So I need to get the Stages for a specific Opportunity Record Type (as defined by the associated Sales Process). Now I can get it by calling for the describe layout action on that record type and ...
1
vote
2answers
53 views

Date format with Salesforce REST API

I'm retrieving the "LastModifiedDate" attribute of a File through a GET request with the Salesforce REST API but I just can't figure out the date format. Salesforce's documentation states the date ...
0
votes
2answers
91 views

Salesforce isn't handling Base64 Encoded attachments uploaded via Rest API

I'm uploading an image as an attachment to an object in Salesforce via Rest API v32. My HTTP request body looks like so: --boundary_string_1416597802788 Content-Disposition: form-data; ...
2
votes
1answer
38 views

Rest API says email is queued but never shows up in web frontend or sends email

I'm using the REST API to send emails and currently have five test emails. Two of these never go to a 'Queued' status in the Triggered Send definitions after hitting the API, despite getting a 202 ...
2
votes
1answer
60 views

How to create a managed application and namespace for REST API

I am following up the post here: REST API without Connected App Although the answer was very helpful, I'm new to SF and need some clarity on some things: 1. How and why can a separate (free ...
2
votes
1answer
26 views

No “Personnal Folder” when querying the Folder through SOQL

I'm using the Salesforce REST API and when I do the following query, it doesn't return the "My personnal folder", hence I don't get its ID : SELECT Id, Name, LastModifiedDate FROM Folder Is there ...
2
votes
0answers
41 views

How to check if a user is a Salesforce Administrator

Using the REST API, what is the best way to check if a specific user is a SFDC Administrator, given his Id?
3
votes
0answers
33 views

Binding REST API to a new language

Does Salesforce support binding the API to a new language? What I have learned I need to use the REST API. How much work would it be? And, what is the attitude of Salesforce towards such community ...
0
votes
2answers
58 views

How to execute a SOQL query in POSTMAN?

I am trying to run the following SOQL query using POSTMAN but i am getting the following error. I have used the access token in the following statement. SOQL Query: ...
4
votes
2answers
64 views

Need to set a nullable field back to null using the REST API

I have come across an edge case where we need to set a field in our data extension to null that previously contained data. (Yes, the field is nullable :) ) I have found documentation on how to do ...
1
vote
1answer
21 views

Update the AccountUser Object

Is it possible to modify or update the AccountUser Object using the ClientID and ClientSecret credentials or do I need to use an API User that is set-up in the account?
6
votes
2answers
285 views

REST API without Connected App

I have to design an external app which will retrieve information from Salesforce. Any user can install this app and use it. This app will use rest API to access information from Salesforce. I cannot ...
3
votes
1answer
42 views

Salesforce OAuth Token IP Restrictions

Short version: It seems that the access_token retrieved via OAuth is restricted to use only by the IP address that requested it. Is there a way to remove this restriction? Long version: I am ...
0
votes
0answers
56 views

Best API to use Send/Receive Salesforce Data

I'm working on getting a Salesforce API key currently so that I can develop a web-based application (probably php) to streamline a currently tedious process. My current workflow is as follows: Open ...
0
votes
1answer
46 views

Is it possible to add fields in the REST response?

Am trying to get the results from REST for the following URL.... https://{instance}.salesforce.com/services/data/v32.0/sobjects/{custom_object}__c am getting the response through advanced rest ...
3
votes
1answer
41 views

Create a Class that I can access from my trigger to login as another user

I need to be able to impersonate another user from my Trigger, and thinking that I could create a class that logins as another user using the REST API and then post messages from that class. How ...
2
votes
1answer
38 views

“No target url” in REST response

I'm using the REST API to make the following SOQL query: ...
1
vote
1answer
43 views

Rest API Integration Fees

I am starting to get setup with the REST API integration, and I am confused on how the billing works. I read the following: "Salesforce charges 15% of net revenue. What does this imply? What is the ...
2
votes
0answers
41 views

No read access to ProfileId for a User over the REST API

We've been looking up ProfileId from a given user that has OAuth-ed already. Normally they're returning the Id correctly when we call this: /services/data/v28.0/sobjects/User/THEIR_USER_ID ...
1
vote
1answer
32 views

Account Detail page not opening up in Salesforce1

I am not sure why, but the Account Detail page is not opening in Salesforce1 mobile app. When I click on an Account, it shows the loading symbol and then a blank page is displayed. I have customised ...
12
votes
2answers
320 views

How to call a Salesforce REST URL from Lightning Component?

I want to call a Salesforce REST URL from a Lightning Component. Specifically, I'm trying to call this Analytics API URL: /services/data/v32.0/analytics/reports. I see the following error in the ...
1
vote
1answer
28 views

Using Web App and Salesforce API to Fill Out Reports

I'm interested in streamlining a currently tedious process. Essentially it's a report I fill out in Salesforce that has check boxes and textareas. Will the Salesforce API allow me to access this kind ...
2
votes
1answer
85 views

Safest way to see if a user is still “logged in” (REST API)

I'm using the Salesforce REST API along with OAuth 2.0 User-Agent Flow. I have the need to "ping" Salesforce to see if a user is logged on (this is the simplest way to do so in my application). If the ...
0
votes
0answers
22 views

QUERY in REST URI in Workbench?

I have been trying to query the Lookup object field in workbench Rest Explorer. Please help me on how to query the Lookup Object Field. /services/data/v20.0/query?q=SELECT ...
4
votes
1answer
52 views

Is DATABASEDOTCOM Ruby gem affected by SFDC dropping SSL3.0 support?

SFDC recently stated they will not support SSL3.0 any longer. Notification goes on to say currently supported browsers all use TLS by default so the users are safe. My concern is an external ruby ...
1
vote
2answers
54 views

REST OAuth redirectURL in local Java Application

I have a question about authentication in the REST API of SalesForce. I have created an API that I can access using hurl.it in combination with RuneScope Token Generator. This works fine and I can ...
3
votes
1answer
54 views

Give lookup field External Id in JSON request

I am using standard create Rest resource to create an contact record in sales force. In json , I am matching the Label name in request with SFDC custom field name , so SFDC do the mapping for me ...