Questions tagged [rest]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
123 views

Programmatically determine relationship between two sObjects and generate result

I have an application which allows the user to specify a geography object and field. For example User's country field Account's State Field Now for Leads the system needs to dynamically determine ...
3
votes
1answer
2k 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
346 views

ExactTarget Rest API testing using Poster

I am trying to test the Rest API with Poster for a simple Authentication call. I added the https://auth.exacttargetapis.com/v1/requestToken URL and tried adding the content-type application/json to ...
4
votes
3answers
10k 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 page,...
0
votes
1answer
236 views

REST API call from Salesforce1

I'm trying to make an API call from my Salesforce1 App. I've created a global action and now I would like that action to call my API. I'm not expecting copy-paste solution but it would be nice if ...
1
vote
1answer
802 views

How i Can return Object type in Rest Response?

i am facing this problem too.i have create a rest service that will check the lead and contact in salesforce if lead or contact is exists then send rest response along with object type.Please suggest ...
2
votes
1answer
1k views

Salesforce to Amazon S3 - policy and signature generation

Description In order to upload files from a visual force page to s3 via AJAX. I had to find a way to generate a valid s3 policy and signature. The issue How to generate a signature and policy in ...
0
votes
2answers
45 views

Using Salesforce oauth to make calls to own account/app

We use salesforce in our website. I'm new to it, and still can't find a way to calls REST api to our own account without going long way of visiting oauth login page, granting access etc(oauth flow). ...
1
vote
0answers
355 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 ...
0
votes
1answer
7k views

Make Restful call with Parameters

This is essentially part 2 building from my earlier question. Call Restful SFDC service from Java I successfully got my service to authenticate. I also got my service to successfully call a post ...
4
votes
1answer
3k views

Call Restful SFDC service from Java

I'm still working on getting the authentication working but having issues. I have been getting a 401 unauthorized error. All of the items I have hidden I am sure are correct values UNLESSS I need to ...
1
vote
1answer
74 views

Duplicate :[Is there any documentation about using Client ID / Token with REST API to access Group and Professional Editions?]

I know my question is similar to other topic as mentioned in title but there are few points that I would like to clarify: My Scenario: I have created an APP and it uses REST API functionality. ...
0
votes
1answer
2k 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 ...
3
votes
1answer
148 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, ...
23
votes
3answers
31k views

Issues with connected App - {“error_description”:“authentication failure”,“error”:“invalid_grant”}

I've successfully implemented the oAuth2 authentication process using the Web Server Flow of the REST API between my application and Salesforce, and it's working great when connecting with a Developer ...
2
votes
1answer
5k views

400 Bad Request in Response

I have been using working on an Applicaion in angularjs, and While getting response of 2nd request for the token, I am getting following an error. Illegal Request You have sent us an Illegal URL or ...
3
votes
0answers
466 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 ...
1
vote
1answer
58 views

What is a RestResource and a RestResourceDelegate in APEX programming?

In the context of APEX programming, What is a RestResource and a RestResourceDelegate? I have seen a RestResource class with a method, global static void doThisThing() { RestResourceDelegate....
3
votes
2answers
9k views

Get full URL (including querystring) from an apex REST endpoint

I have set up an apex class as a REST endpoint for an HTTP GET request that an external system is sending. We're having some trouble with it and they want me to send them the request detail. How do I ...
3
votes
1answer
2k views

Authorization header missing from RestRequest headers map

I have a publicly exposed web service (Rest Apex) through Sites and I'd like to do basic authentication which I will manage myself. I noticed that when I specify Authorization: Basic ...
4
votes
2answers
1k 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 ...
2
votes
1answer
897 views

How do I prepare Salesforce to accept HTTP request from an external system?

A text messaging system we're integrating with includes a feature that sends an HTTP request to a URL with message receipt data but I'm not sure how to prepare our Salesforce to deal with it in the ...
0
votes
1answer
4k views

How to call REST webservice without username and password in request -

I have created one restful class: @RestResource(urlMapping='/showAccounts/*') global class ExRestController { @HttpPost global static List<Account> getAccounts() ...
1
vote
1answer
384 views

Salesforce end point url creation to send request to our instance

Please give me some idea how we can create End Point url to give another third party with access token consumer key and others. I need to give url so that third party person will send request to me ...
3
votes
1answer
153 views

Android REST Create Event

I am trying to create an Event on my salesforce Calendar. All I am receiving is a 400 error. Can anyone help me with what I am doing wrong or missing? Any help would be greatly appreciated. ...
2
votes
2answers
834 views

Salesforce rest query “join”

So I would like to know if a domain is in three or more tables Normally I would do something like this to get one row SELECT c.Email, a.Website, l.Email as leadEmail FROM Contact as c ...
1
vote
1answer
1k views

Calling Rest resource from Ajax in Canvas App

I've a Rest Resource in salesforce which creates records in salesforce. And i've a demo canvas app hosted on Heroku. On that app, i'm authenticating using Single Request and trying to query data(...
4
votes
3answers
2k views

REST OAuth connection for Bulk API queries

Is it possible to authenticate an OAuth app for the user and then make Bulk API queries on their behalf? The results are easily going to be more than 20k records each authenticated user. When I have ...
0
votes
1answer
125 views

Update value in Object through API

I'm using PHP and SOAP OR REST to access the data from my Salesforce Account. I want to know if there's a way for me to do a query or something like it to update or insert some records? I haven't been ...
1
vote
2answers
801 views

List of ExactTarget Sandbox URIs?

Where can I find a complete list of ExactTarget Sandbox URIs? So far I have only Authenticate with REST. https://auth-test.exacttargetapis.com/v1/requestToken but the next request fails, because my ...
2
votes
1answer
120 views

Is it Possible to define the Subject/Body of a Message at Send Time?

Is there a way to send a completely dynamic message through ExactTarget? We would like to create a "template" email, and then if at all possible, specify the subject and body of the email/message ...
4
votes
1answer
567 views

REST API: 18 Digits ID is not working but 15 Digit does

In rest if I, for a standard user, use "/services/data/v28.0/sobjects/User/"User ID"/Password" to check whether logged in user password is expired or not (testing in REST explorer Workbench). ...
1
vote
1answer
80 views

searchlayout REST API causing issue

Can somebody please let me know why /services/data/v28.0/searchlayout/?q=Account,Contact,Lead,Asset does not return data? It is mentioned in REST guide but on workbench it does not get executed and ...
2
votes
1answer
312 views

Adding object through REST API not appearing on chatter?

So my problem is that when i create an item, for example a new contact, which is related to an Account, the action of creating that object doesn't get shown on the chatter feed for that account. I ...
6
votes
1answer
11k views

System.CalloutException: Unable to tunnel through proxy. Proxy returns “HTTP/1.0 404 Not Found”

While trying to call REST web service, i am getting callout exception while doing authentication. follow is the Code spinet, ulr and token is updated for this example. Http h = new Http(); ...
4
votes
1answer
940 views

Symbol Table References are Null - REST Call

I am trying to get the references for methods defined in Apex Class via Tooling API ( by REST Call ). Please find the information of the REST Call below ( using Workbench ) When i make the above REST ...
5
votes
2answers
5k views

How to retrieve just the text without formatting from a rich text field using JSON?

I am querying a rich text field that contains text information using a public rest service using this method http://blogs.developerforce.com/developer-relations/2012/02/quick-tip-public-restful-web-...
4
votes
0answers
863 views

REST API Query Timeout Expected

Having recently completed an integration with salesforce using the REST API we've come across an interesting feature. All the documentation I could find suggests that we should get a QUERY_TIMEOUT ...
2
votes
1answer
11k views

503 error in rest api

I am calling below webservice when i update the record in account object, trigger calling the webservice but when i used below webservice i am getting 503 error i am follwing the below link http://...
5
votes
2answers
6k views

How can I tell from REST api which of an object's fields are required?

I am trying to create objects with the REST api, which works fine as long as I specify a value for each required field in the POST. The question is, how can I tell from the API which fields are ...
5
votes
1answer
160 views

Proper/Safe Way to Link to Salesforce Object

What is the proper/safe way to get/generate links for Salesforce objects retrieved through the REST API? For instance, we have a tool living in another application that allows users to query for ...
3
votes
1answer
513 views

OAuth with Active Directory Single Sign On

I am writing a Java App that will integrate with Salesforce using OAUTH + REST. In normal circumstances without any single sign on everything is cool. But the same app might be used to work with ...
2
votes
1answer
35 views

is it possible to save data of my customized application in visual force workbook to my own database with out using salesforce database

I created one application in salesforce.com.That application contains create,Update,delete,GetList buttons.Is it possible to save data in to mysql database(my local database) when user clicks these ...
1
vote
1answer
4k views

REST API Request using text/xml returns UNSUPPORTED_MEDIA_TYPE

The documentation tells us that XML, however un-hip, can be used as a request format. The reality seems to be only HTTP 415 errors with UNSUPPORTED_MEDIA_TYPE. Class: @RestResource(urlMapping='/...
4
votes
1answer
1k views

Calling custom apex as REST with XML results

So you want to call your Apex classes from outside salesforce via RESTful HTTP and need XML resurned even though it's uncool. The official documentation suggests it's supported by simply adding the ...
6
votes
3answers
11k views

Server-Side REST Authentication

We are trying to interface with our SalesForce instance via HTTP. The idea would be to call some of our custom classes from outside salesforce but without any user interaction. Typical scenario is ...
5
votes
1answer
1k views

ExactTarget REST vs SOAP API

I'm impressed with ExactTarget's REST API; it's well considered, particularly its oAuth implementation. However, the services available in the REST API only provides a handful of core methods. The ...
2
votes
1answer
13k views

Upload files to a Case in SalesForce via REST API

I'm working on uploading attachments from my website to Salesforce, attachments should be related to case object. I'm using REST API in PHP. So problem is that I get an error when I tried to upload ...
4
votes
1answer
632 views

Is it possible to setup a web tab in Salesforce which will go to this KB without needing to login using username and password?

We have a Web KB that is built in PHP. Is it possible to setup a web tab in Salesforce which will go to this KB without needing to login using username and password? I initially thought that SAML ...
4
votes
2answers
658 views

REST Vs SOAP API for Email Content Creation in ExactTarget

This might be a newbie question, but here it goes anyway The Web Service Guide talks about Creating Email content using Web Services API (http://help.exacttarget.com/en/technical_library/...