Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest]

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

0
votes
1answer
3k 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
340 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
149 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
640 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
2answers
1k 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
97 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
769 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
113 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
472 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
79 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
277 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 ...
5
votes
1answer
9k 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
715 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
4k 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
805 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
7k 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
4k 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
151 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
478 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
31 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
3k 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 ...
4
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
6k 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
537 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
640 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/...
4
votes
1answer
718 views

Wrong Tags Parsing XML from API

I am trying to parse a file from our meeting server with XML data. The data is structured like this: <results> <status code="ok"/> <principal-list> <principal ...
3
votes
1answer
2k views

JSON.serialise give output with escape charater

I am doing this: JSON.serialize(payload); where payload is an object instance. and getting this: "{\"signup\":{\"salesforce_id\":\"003110022068XNz\",\"nationbuilder_id\":65536,\"last_name\":\"...