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

learn more… | top users | synonyms

4
votes
1answer
23 views

How to send a triggered email with multiple order lines via REST API

I need to send out triggerd Order Confirmations via ExactTarget. So far i'm able to send a triggered email via the rest API with a single order line where i have the order details created in a Data ...
7
votes
1answer
59 views

How do I set DML Options when using the REST API?

My question is nearly identical to an existing question. To summarize the problem, my case owners aren't receiving an e-mail notification when a new comment is added to their cases. Please view the ...
0
votes
2answers
33 views

How to insert (upsert) an object that has no external id?

According to this documentation, you need to know the external ID field of an object to inset new records. For some of my custom objects, I'm not seeing any fields in the object description that have ...
0
votes
0answers
17 views

Custom object doesn't have a RecordTypeId field, but has available record types

I have a custom object that doesn't have a RecordTypeId field. I expected the object to have a RecordTypeId field, especially since it has an available record type ("Master"). Am I wrong from for ...
0
votes
1answer
21 views

Partner users API access

I am developing a Phonegap app for Partner users. It needs to be on javascript so I tried ForceTK with no luck. Is this possible?
1
vote
1answer
49 views

Developing a Swift Salesforce1 app

I'm planning to develop a native iOS app using Swift on Salesforce1. Any sample code/ guidance which shows how to fire the Salesforce REST API and render the response on UI will be helpful.
5
votes
0answers
53 views

Create Community User through REST API

I am using nForce libaray with node.js. Everything's go right and we perform CRUD on Case object. However when we would like create User using an external account with "Delegated External User ...
1
vote
1answer
48 views

How to create a file inside a folder in google drive?

I am able to create a file in Google drive from salesforce with the below code: Http http = new Http(); HttpRequest req = new HttpRequest(); req.setMethod('POST'); ...
7
votes
2answers
127 views

Discovering API Limits via Custom APEX Rest API

According to the documentation, the Salesforce REST API returns a Limit Info Header with each request. So each REST API call gets a Sforce-Limit-Info: api-usage=18/5000 line returned in the response ...
1
vote
1answer
20 views

Is it possible for a field to be read-only in the metadata, but update-able in a layout?

Using the REST API (v31.0), I can get the metadata for an object and look at the fields for that object. { fields: [ { ... updateable: false, } ] } Buried deep within the ...
4
votes
2answers
100 views

Recommended way to query all the fields for an object type in a SOQL query

I need to query all the available fields for an object, but retrieving each object one at a time via the REST API is not an option. // Not feasible for each account record ...
2
votes
1answer
35 views

Passing custom model to Apex REST custom endpoint

I have a custom APEX REST point /organization-contacts/* that accepts an array of queries to run. This is to try and find matching contacts (based on phone number in this example) in "batch". I ...
1
vote
1answer
23 views

When Run Rest method the Error “List has no rows for assignment to SObject”

I am trying to get the opportunity Name and a contactID using getContactId() and getOpportunityName() method, just after leadcoversion. I get "List has no rows for assignment to SObject" error which ...
2
votes
1answer
39 views

How do I get the record types that are available to a user

I'd like to retrieve the record types available for an object. Is the recommended way to do this to use the recordTypeInfos collection returned on the object's metadata?
1
vote
1answer
72 views

Insert multiple SObject data in Salesforce as single transaction using REST calls

I am using following soObject call to insert new row in the Account table at Salesforce server : curl -H "Authorization:OAuth use your session_id" -H "Content-Type: application/json" -d @Test.json ...
2
votes
1answer
30 views

Error: Compile Error: Invalid field Campaign for SObject Lead

I created Rest post method for inserting new lead record but in lead Sobject there is Campaign Lookup filed name is 'Campaign' but when i save this method i got the error "Error: Compile Error: ...
1
vote
2answers
19 views

How to get the referenced field's name value when the field is referencing multiple types

I'm using v31.0 of the Salesforce REST API. When looking at the metadata for some of my objects, Salesforce says that the OwnerId field references two tables: Group and User. The JSON that Salesforce ...
0
votes
1answer
28 views

Invalid SESSION ID on Account creation

I'm very new to salesforce. I created a developer account and I am trying to create an account using RESTAPI. I have the error 'Session expired or invalid" but I don't know why. I read a previous ...
1
vote
3answers
46 views

What are the Edition requirements for APEX Rest API?

The Apex REST API documentation states that Apex REST is currently available through a pilot program. For information on enabling Apex REST for your organization, contact salesforce.com. However, I ...
4
votes
2answers
57 views

How to use Name Object

I am using the Java API and trying to create an Attachment with a reference to the Parent external Id field. The setParent() method takes a Name object as the parameter. For what I read, the Name ...
3
votes
2answers
68 views

What is the maximum number of records I can send per RESTful API call?

There is a maximum batch size for the number of records returned by an API call. Most of the documentation for the API calls reference including a .json file, and some, like the Update a Record ...
0
votes
1answer
53 views

Creating a Person Account in Salesforce using the REST API

I have 2 questions here. I have Person Account in salesforce, so if via API if I create a contact , it just creates a contact and not an account, on the other hand If I create an account in ...
1
vote
0answers
38 views

Opt-Out using queueMO API

I am trying to opt-out of SMS using QueueMO API but getting error. Below is the request and response. Any idea what could be going wrong? Is there any other way to opt-out using REST API? Thanks in ...
3
votes
2answers
106 views

Salesforce Case integration via REST API

I'm pretty new to the Salesforce REST API, and where do I find documentation or a resource on how to create a case in Salesforce using their API?
2
votes
1answer
39 views

Rest API 400 response for Opportunity insert

I am trying to make rest call and insert Account , case and Opportunity. My code work well for Account and case, but fails for opportunity. When making rest Call for oppurtunity, 400(Bad Request) ...
3
votes
2answers
79 views

JSON response parser returning some fields null

I am trying to parse a JSON response from google. All the fields are populating with the exception of 'lat' and 'lng'. Not sure what I need to do to get the coordinates. Any help is much ...
1
vote
1answer
49 views

How to return object type and ID?

How i will return the rest response with object type and contactID to the end user in json format. When compile this code it through error. "Compile Error: Invalid type: String at line 5 column ...
4
votes
1answer
31 views

Issue sending triggered email in exactarget using Apex developer

I am trying to fire an ExactTarget triggered email using the Salesforce developer console. I am now getting the error "Problem initating message send during deserialization of JSON payload" Http ...
2
votes
1answer
52 views

Unable to create a Connected App: “The application name has been used before” even when it has not

I managed to add a connected app in a sandbox instance but when I try to add one in the production instance, I receive this error. The application name [name] / [API name] has been used before. ...
1
vote
0answers
23 views

Authentication with google calender api

have been trying to integrate google calender api with salesforce was able to achieved it using auth 2.0 ,has i navigated it to google page for auth ,so now when i was trying to use auth 1.0 with ...
2
votes
1answer
27 views

How can I access the data/metadata of the Salesforce homepage via REST API?

I'm trying to make my Salesforce application as dynamic as possible. One of the things I'd like to do is pull the meta-data and data that make up the Salesforce home page. Is this possible, and if so, ...
1
vote
1answer
40 views

How to query a community with SOQL

To query my organization, I usually use this REST route. However, I receive records from both my organization and communities. I would like to scope my query to a specific community. I tried following ...
1
vote
1answer
29 views

Determine which layout to render for objects having no recordTypeInfo

In a previous question, I had asked how to determine which layout was correct to render for a user, based on the organization's security and the user's profile. The answer was to use record types to ...
1
vote
1answer
40 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 ...
0
votes
1answer
58 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
1answer
63 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
54 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 ...
2
votes
1answer
112 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
87 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
33 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
56 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
39 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
51 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
27 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
81 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
77 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
43 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
27 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
56 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
28 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. { ...