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

learn more… | top users | synonyms

2
votes
1answer
14 views

How to determine which layout to render

Question: How should I determine which layout to render for an object? From my research, I think this can be done by looking at the RecordTypeId for an object, and then querying the layouts to find ...
2
votes
1answer
24 views

Are security policies enforced on returned data from the API?

I'm making an application that interacts with Salesforce Rest API. When logged in as a user, I can execute SOQL on behalf of that user, for example: SELECT subject from event However, this will ...
0
votes
1answer
21 views

Call REST Webservice in Salesforce from external system

I'm writing a webservice from Salesforce that I can call from an external system, but for my life I cannot remember/find how to successfully call it. I am using a website in order to test the dummy ...
1
vote
1answer
23 views

What happens when viewing an object that has a record type you don't have access to

I have a custom object named Assessment that has a RecordType field. What happens in Salesforce if I create an Assessment with a RecordType that others do not have access to (based on their profile). ...
2
votes
2answers
27 views

Problem trying to upload ContentVersion from base64 image data via REST API

I am trying to upload a small image in base64 as a Chatter file (ContentVersion record where Origin = 'H') via the Force.com REST API. Here are the headers and body that I am sending: ...
4
votes
1answer
24 views

How to access “servlet/rtaImage” resources over the API

Does anyone know if it's possible to access the images stored in a rich text area over the API using the username-password flow? I have images in Knowledge Articles that I would like to expose through ...
2
votes
1answer
26 views

Is there REST API to trigger a file transfer/import job/program?

Is there any way I can avoid having to travel back in time to use SOAP and instead use the REST api to: 1) Trigger a file transfer 2) Trigger an import job 3) or Trigger a program ? I believe the ...
0
votes
0answers
15 views

How to create attachment from Rest Api Javascript

I want to create attachment from javascript to salesforc using REST api without using Ajax Toolkit. I tried with this link Create Document using REST API But I had no luck . Please help. Thanks
1
vote
0answers
27 views

How to integrate salesforce with google drive [closed]

Create a force.com solution using VisualForce, where a related list is displayed to the user on the account detail page. The user can upload files through this interface, these files instead of ...
1
vote
1answer
20 views

Can a “reference” type field reference more than one table?

Using v31.0 of the Salesforce REST API, when querying metadata for an object, if the object is of the type reference, it will have it's referenceTo field populated with the referenced table. { ...
3
votes
1answer
46 views

How can I implement SalesForce custom RestAPI model binding?

When implementing rest api methods in Salesforce, I often have to write code like this: @HttpPost global static String CreateLead( String LastName, String Company, String Email, String Country, ...
1
vote
1answer
33 views

How to download VersionData from ContentVersion when ContentSize is large?

I'm presently using the mobile SDK with native iOS to download VersionData of content objects thus: SFRestRequest *request = [[SFRestRequest alloc] init]; request.endpoint = ...
1
vote
3answers
40 views

How can i login into salesforce from salesforce let's say through apex code or REST API class

How can I get the session id? Can I log in into Salesforce through Apex code? I have achieved similar functionality using Java but I am not sure how to achieve this using Apex.
0
votes
1answer
31 views

Chatter Rest API limit on comments?

I am trying to use the Chatter rest API to get the comments of a FeedItem from the chatter feed. It all appears to be working OK except there appears to be a limitation on the amount of comments I get ...
0
votes
0answers
47 views

How to Access contacts of Salesforce account from External Modules/Portals using OAuth

I am creating an application in angularjs. and I want to import contact of salesforce account in my application. I have already got response of access_token and I am passing given below url. ...
0
votes
0answers
18 views

Error in webservice-Rest Service?

I am following this blog Post Shivasoft where you can get Records From One Org to Another Using REST API. I have Followed the Same Thing As mentioned tin Blog Still I am Not getting any results This ...
6
votes
1answer
83 views

Uploading Excel file as REST POST - certain content types corrupted when saved

I have created an Apex REST service that accepts a POST with a binary attachment. When the Content-Type is set to "application/pdf", it works fine, accepts the file, and the attachment is valid as an ...
1
vote
0answers
13 views

User-Agent OAuth Authentication doesn't provide expires_in data

I'm using the User-Agent OAuth Authentication work-flow, and when receiving the authentication code, Salesforce is not sending me the expires_in data. Here's what my Salesforce response looks like. A ...
3
votes
3answers
150 views

What's the difference between these authentication endpoints?

Based on the information in the Salesforce rest-API documentation, examples of valid restful endpoints for authentication are: For authorization: ...
7
votes
0answers
108 views

Weird missing record issue with SOQL query

Can someone help me understand why this query is returning 1 less record than expected when a Date custom field (Due_Date__c) is included in the SELECT clause? As you can see in the screenshot, it's ...
0
votes
0answers
26 views

How to insert a record in userterritory object

There is a field on Account and same on User object for exp field is DC and value can be DC1, DC2 etc.and on that basis, I created the territories named DC1 and DC2 These value can be changed on both ...
2
votes
0answers
39 views

Login Service Cloud user through the REST API

I am building a web portal for the SalesForce Service Cloud using the REST API (PHP/WordPress Project). I need Service Cloud users to be able to login to the site through the API without being ...
0
votes
0answers
17 views

How to use this endpoint https://ap1.salesforce.com/services/username

I want to use https://ap1.salesforce.com/services/username endpoint instead of https://login.salesforce.com/services/oauth2/token. Can you please share how to use this api. Thanks.
4
votes
1answer
26 views

OAuth Mechanism,User and password flow

I am using user pasword login authentication mechanism.I am doing this between two salesforce org.I have done the initial setup and I will be using Rest Api's. I can see instance and access token in ...
7
votes
1answer
142 views

Prevent auto-authenticate using OAuth 2.0 Web Server Flow?

We're trying to override the auto-authenticate behavior when kicking off a web server flow in the REST API. Basically, we need to let a user authenticate and capture OAuth tokens to several Salesforce ...
2
votes
1answer
30 views

Populating Client ID for API Call reporting purposes

This is loosely in reference to another Question: Client Id blank in "API Calls Made Within Last 7 Days"-Report I'd like to find out, so that our Developers can implement it, where ...
3
votes
1answer
60 views

how to change email list status for email address with REST API

i am running into an issue with the REST API. I am able to subscribe a user to any list when they are new to the system using ->post(), but when a user is already in our system and unsubscribed from a ...
1
vote
1answer
38 views

Unable to determine IP address from host name when trying to hit external system from salesforce

I get the below error when trying to hit the external system Unable to determine IP address from host name The dnsserver returned: Name Error: The domain name does not exist. The ...
1
vote
1answer
72 views

issues with GET callout from salesforce

In my scenario i invoke a PUT callout to an external system After that GET callout is invoked that is supposed to get the updated record values Problem: the output of step 2 shows the old record ...
3
votes
1answer
44 views

Mobile App and Salesforce Integration

I am working on a project where I need to Integrate a Mobile app with Salesforce using REST API. Also we have a chat functionality on mobile app . My requirement is :All the Chat conversation should ...
3
votes
0answers
16 views

Fetch Case's Call logs via REST API

I'm looking for a way to fetch all tasks which represent Call Logs for a given Case via REST API. The tasks are created via 'Log a Call' UI and seem to have no specific distinction from any other kind ...
1
vote
1answer
66 views

Get Deleted/Updated records using REST Api in SalesForce

We have a requirement where we need to get a list of deleted and updated records for a given object type. Is this possible currently using REST Api. We know this is possible throught Soap api. But ...
2
votes
1answer
45 views

How can I call a custom REST API Method simply?

I've been trying to read through the SalesForce documentation on how to call a custom Method like this via cURL: @RestResource(urlMapping='/Test/*') global with sharing class RestTest { @HttpGet ...
1
vote
2answers
43 views

What to use for performing operations on multiple records at once, Apex REST class or Bulk API?

I need to insert/update/delete a variable number of records at a time from a webapp (so from javascript), are there reasons to choose the Salesforce Bulk API over writing a custom Apex REST class to ...
2
votes
1answer
50 views

Site.com Data Repeater filter Criteria Query String URL not working for two different scenarios

I have one filter for Alphabetic sort and other for search facility on the website. The Alphabetic sort is working at all times but the search filter (having contains operator) works only when I ...
0
votes
0answers
37 views

Receiving SOAP messages in APEX

I have been trying to figure this for a long time now, my issue is : There is an outbound message that is being sent from a workflow rule (on create) with the Record Id, I want to capture this ...
2
votes
1answer
29 views

ExactTarget: is there a REST API to add subscribers to a list?

I have successfully used the Python Fuel SDK to add subscribers to a list: https://github.com/ExactTarget/FuelSDK-Python/blob/77d9d16b51952fcb90564ae456a65794b56e1554/FuelSDK/client.py#L217 I would ...
1
vote
0answers
48 views

Creating skills through REST API returning Status=Unauthorized, StatusCode=401

I am trying to create Skills through the REST API (in an apex class) and I am getting a 401 back from salesforce. Note - Skills are new and cannot be inserted through normal DML operations, hence the ...
3
votes
1answer
38 views

Debug Log Application Unknown

We are developing iOS app which is using Salesforce iOS native SDK. We are currently using SFRestRequest class for communicate with SF. But in our "Debug Logs" it shows our log like this. Reqeust ...
2
votes
1answer
29 views

API to check what types of tags is enabled

I can't find anything in the documentation of API which would discuss how to check what types of tags is enabled(public or personal)
2
votes
1answer
23 views

How to tie my Exact Target account with my Stage Exchange OAuth login?

I am a new user. I have an existing Exact Target account with my company. How do I tie that account with the Application I want to create. I would like to use the Force API to query some of our ...
1
vote
1answer
66 views

Configure Proxy to call API

I am developing application to call Exact Target API with Python. For example, I have launched example from here It works only if I have direct internet conexion (without any proxy) When I connect to ...
1
vote
1answer
38 views

How does one log out on the client browser without revoking a refresh token?

How does one log out on the client browser without revoking a refresh token? I want a refresh token to be always available (so never revoke it) since multiple users will have the same account. So ...
3
votes
2answers
127 views

What's the correct syntax for this SOSL sent via the REST API?

I'm trying to retrieve an Id from Salesforce over the REST API using SOSL. My query which I can execute without issue in the Developer Console is: FIND '(415)901-7000' IN PHONE FIELDS RETURNING ...
1
vote
1answer
34 views

Querying an Org's CaseComment object via REST + SOQL returns “invalid cross reference id”

I am using the REST API and SOQL to query an Org's CaseComment records, but I'm getting the "invalid cross reference id" error. Most of my search online shows this error occurring during inserts or ...
6
votes
1answer
80 views

RestAPI nextRecordsURL lifetime

we are currently working on POC that queries large amounts records through RestAPI. For queries that exceed the batch query size, a nextRecordsURL gets returned. Does anyone know what the lifetime of ...
2
votes
1answer
43 views

Custom field definition with canvas app?

I have a canvas app which uses the REST API to access salesforce data and I want to define/use a custom field on the Lead object. I found out how to add custom fields via the web interface via ...
3
votes
4answers
343 views

How to save Base64 image data as salesforce attachment

We are integrating an IOS app with salesforce and need to upload image data by apex rest class. we packed image base64 data and other data into JSON string, then send it. Now we get the JSON data in ...
1
vote
1answer
49 views

How to Include an “IN” clause to SOQL when using via forcetk

I'm working on a Salesforce Hybrid mobile application and there I need to perform an SOQL query with some filters. All are working but an IN clause. ...
4
votes
1answer
21 views

Salesforce Data Migration API Limit

I vaguely remember we can file a case to salesforce to relax daily API limit during data migration window? is this true? Thanks