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

Understanding Total API Request Limits

I don't understand the total API request limits as explained in the help section of Salesforce. Since I only have access to our client's sandbox environment, I can't see what the limits are in the ...
-1
votes
0answers
24 views

DML requires SObject or SObject list type: createProduct.ResponseBody at line 114 column 17

i am writing the apex rest api where it consist one product(master record) with multiple attribute (with multiple child record). iam getting the dml when i try to upsert the master record. ...
0
votes
0answers
26 views

Why is my Google request denied?

I am trying to integrate Salesforce with Google textsearch in order to acquire a JSON response with desired information. My request is getting denied and I can't figure out why. Any help is much ...
1
vote
0answers
33 views

Exact Target Triggered Send using salesforce APEX

I am trying to send an Exacttarget triggered email using the Salesforce APEX developer console. In the end I would like a member update on Salesforce to send a triggered email from Exacttarget. I have ...
1
vote
2answers
41 views

Can someone please explain what “related lists” are?

When querying the layout for the Account object via the Salesforce REST API (v31.0), I am seeing a populated relatedLists array. Could someone please explain what related lists are, where they are ...
-1
votes
0answers
16 views

apex rest api creating account with multiple contacts in saleforce

I need to create account with multiple contacts at same time . i will be getting the response in json . please help me how to parse the contact multiple contacts with single account. as we know ...
2
votes
1answer
55 views

SalesForce OAuth Endpoints

I am working on an application, where any user can login into my application through Salesforce. As per mentioned in below url, We can use https://login.salesforce.com or for sandbox ...
1
vote
1answer
31 views

Creating a standalone java client of salesforce chatter using rest Api

EDIT I am struggling to add the correct formatting to the code post below. if someone can edit this question and apply the proper formatting to code, i would appreciate it. I am fairly new to ...
3
votes
1answer
25 views

Request parameters in ExactTarget postMessageContact/Send REST API method

We have integrated an app to send out transactional SMS messages to defined mobile numbers using the MessageContact/Send SMS REST API method. The problem is that this method isn't documented very ...
5
votes
1answer
43 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
35 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
36 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
25 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
3answers
44 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: ...
5
votes
1answer
38 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
34 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
21 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
37 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
49 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
35 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
47 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
32 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
53 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
20 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
96 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
15 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
157 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
122 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
28 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
45 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
144 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
32 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
62 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 ...
2
votes
1answer
49 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
74 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
45 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
71 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
50 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
44 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
53 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
38 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
33 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
49 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
24 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 ...