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

learn more… | top users | synonyms

0
votes
0answers
9 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
22 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
35 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
62 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 ...
1
vote
1answer
25 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
15 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
23 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
38 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
55 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
51 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
37 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
23 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
94 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
35 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
68 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
46 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
29 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
38 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
26 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
33 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
28 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
31 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
52 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
1answer
41 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
58 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
48 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 ...
-4
votes
1answer
31 views

apex rest api creating account with multiple contacts in saleforce [closed]

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
100 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
65 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
29 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
55 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
45 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
26 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
66 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
65 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
39 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
25 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
53 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
26 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
58 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
42 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
58 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
40 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
64 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
28 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
138 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
19 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 ...
5
votes
3answers
181 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: ...