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
15 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
14 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
18 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 ...
0
votes
2answers
22 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
39 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
28 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
36 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
24 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
36 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
30 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
40 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
52 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
19 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
246 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
29 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
36 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
37 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
40 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
34 views

“No target url” in REST response

I'm using the REST API to make the following SOQL query: ...
1
vote
1answer
35 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
37 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
26 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
264 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
80 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
14 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
48 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
37 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
45 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 ...
2
votes
1answer
47 views

Static authorization token for REST API from external system

I am integrating an external system and they gave me an authorization token. I set the authorization token and it is working fine. I used SetHeader in HttpRequest. Now they want to send a REST ...
4
votes
1answer
53 views

Can I access breifcase configuration info through SOAP or REST API

Is there anyway to retrieve briefcase configuration via the REST API (preferably) or SOAP API? More info on briefcase configuration here.
0
votes
0answers
30 views

Rest web service not taking Community user context

I am trying to call a web service in my Salesforce org (apex) from developer console. I want my web service to be called with respect to Community user and not Guest user. Currently I have the ...
1
vote
1answer
29 views

Sample rest class

I need to write a sample rest class where i have custom button on account object.and When i click on the the button it takes a values from account and perform get method with external site and update ...
2
votes
1answer
36 views

How to specify BatchSize in Rest API SOQL call?

How to specify BatchSize in Rest API SOQL call, I tried it as per salesforce documentation and its not working ? Note - I know you can do this using offset, but I wanted to explore if its possible ...
1
vote
1answer
50 views

REST API: How to insert values for picklist and lookup field types?

Introduction Hello, I'm working on synchronising data from a MySQL database into Salesforce using the REST API. I've got as far as inserting basic text values, but for complex field types such as ...
-1
votes
0answers
29 views

binary/base64 encoding data to show as pdf using rest api… for published articles

I have one requirement with me in which I have a published article , on that published article I have one custom Rich text area Field and on that I have saved the link,images and URL's , so I want to ...
4
votes
1answer
74 views

How can I “close” a Task from the REST API/Apex

Since all picklist values for the Status field on Tasks are configurable I don't think I can simply set the Status to "Completed" as that picklist value could have been deleted/renamed. I tried ...
-1
votes
2answers
24 views

How to find all Salesforce records with a specific WhoId?

I have a Lead or Contact. I want to find all of the Accounts and Opportunities for that specific Lead or Contact. Is that possible? What would the query look like?
1
vote
1answer
16 views

Is it a good Idea to add an Event to *everything* related to a given record?

I'm building an app where I'll log an event that an email was opened to Leads and Contacts that match that email address. I'm wondering how many times this Event should be duplicated. Does it make ...
2
votes
0answers
14 views

Using the REST API, how can I tell that a user has blocked OAuth access vs revoked OAuth access?

It seems that I get the same authentication error message the token is invalid. Is there a way I can tell the difference as the vendor? Note that I am not referring to an Apex app. My app is purely ...
1
vote
1answer
25 views

How to get all Contacts and related Opportunities for a given email?

For a non-Apex app (web REST API only), how can I consolidate these requests: find all contacts that match an email address find all opportunities associated with those contacts from 1 Right now, ...
2
votes
0answers
45 views

Upload an Attachment via the Rest API

I'm having an issue uploading attachments via the REST API. When trying to upload attachment data (i.e. data about the attachment and the associated base64 binary data) I'm getting a 400 result (Bad ...
1
vote
1answer
23 views

What happens to Salesforce OAuth tokens when a user blocks your app or revokes access

I have a non-Apex app that relies on OAuth only. I'm trying to test out what happens if the user revokes access or blocks the app and/or then unblocks the app. In my limited testing, it seems that I ...
1
vote
1answer
16 views

How to write a query to find Events of a specific Lead or Contact?

Using the REST API (no Apex code), I want to get all the Events of a specific Lead or Contact (I have the Lead Id or the Contact Id) that has a specific string in the Description. What would that ...
2
votes
3answers
44 views

How long does it take a create/update/delete to complete with the REST API?

The logic for my code is: look for a Lead with a specific email; if none exists, create a Lead with that email address. The problem is that this code is running pretty frequently for the same email ...
8
votes
3answers
171 views

How do I send SMSes from Salesforce?

What would be the approach to create an SMS application (either in Salesforce or other language) to send SMS from Salesforce? Is it feasbile if the client-side process is done through a streaming API ...
2
votes
1answer
23 views

How to find all Events with a specific URL in the description?

I keep getting a MALFORMED_SEARCH error for this find using the REST API: FIND {"http://www.google.com"} IN ALL FIELDS RETURNING Event After removing one character type at a time, it seems that the ...
1
vote
1answer
36 views

How to implement business rules before calling Sales Force REST APIs

I am new to SalesForce and would like to know if we can have wrapper around SF REST APIs to add business rules? Before passing SF REST API parameters we would like to apply some business rules and ...
1
vote
1answer
19 views

How to search for email addresses using Salesforce REST API?

I'm using Restforce and their example for looking for a string is this: client.search('FIND {bar}') I'd like to extend to look for a specific email address like this: client.search('FIND ...
3
votes
1answer
70 views

Which Salesforce web APIs are available to Group Edition?

I've been writing a REST API-based service and testing on a Developer Edition org user and it's been working fine, but it stops working for a Salesforce user with a Group Edition org. I get this ...