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
2
votes
1answer
722 views

Can you call a REST service from Eclipse?

Can we call a rest service from Eclipse? We can call REST service from workbench to test whether its working fine or not. If you want to see the logs, we wont be able to see the whole log in ...
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 ...
0
votes
0answers
141 views

How to name number property for JSONGenerator

In the PayPal REST API, there is a credit_card object which has a property called number. Unfortunately, "number" is a reserved keyword in Apex, which means that I can't simply name my property number ...
3
votes
0answers
672 views

Send PDF from Salesforce to EchoSign through Apex REST and EchoSign REST API?

How to send PDF generated from VF page to EchoSign through Apex Code and REST API of EchoSign? I'm getting error as "Content Type not Supported/ UNSUPPORTED_MEDIA_TYPE". Any idea? String ...
3
votes
1answer
2k views

Sending a PDF from Salesforce through a REST call

How do I send a pdf through REST call out of Salesforce? Should we use sites? Any idea?
3
votes
2answers
998 views

Rest Call without using Connected App

We have a REST call that one of our systems is making to Salesforce but we do not have a Connected App set up. I cannot for my life figure out how to do this without a connected App that uses the ...
1
vote
1answer
432 views

Filling method params in doPost request

I am trying to send some information to salesforce on my iOS7 device. I am using the SFRestAPI of Salesforce. In my API class I've the following: @HttpPost global static ResonseWrapper doPost(...
2
votes
1answer
405 views

GET method for download WSDL

I want to download wsdl file programmaticaly, using my Web JavaScript application. First I do Oauth login and get all tokens. Then I try to download WSDL file using JavaScript: var xmlHttp = ...
7
votes
1answer
14k views

OAuth2 Refresh Token Flow - Unsupported Grant Type [duplicate]

I am attempting to obtain a token, using the Oauth 2 refresh token flow. I am using the REST Console in Chrome to perform the following POST operation: My URI is https://cs11.salesforce.com/...
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
345 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 ...
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 ...
2
votes
1answer
974 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 ...
1
vote
0answers
352 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 ...
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, ...
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
464 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
57 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....
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(...
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 ...
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
377 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. ...
4
votes
1answer
550 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). ...
2
votes
2answers
796 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 ...
0
votes
1answer
123 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 ...
2
votes
1answer
303 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 ...
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 ...
4
votes
0answers
850 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
10k 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
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 ...
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

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 ...
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 ...
4
votes
1answer
616 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
657 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
726 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 ...

1
11 12 13 14
15