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

learn more… | top users | synonyms

2
votes
1answer
58 views

How to get Employee Number using REST API

I have successfully authenticated from my application using OAuth2 and I'm able to get UserName, UserId and few other things, but I can't get EmployeeNumber which is stored in User profile. How that ...
0
votes
0answers
10 views

Post on Facebook Page using Force.com Facebook Toolkit

Using Facebook Toolkit i am able to get data of user. But is it possible to post data on Facebook page and get data from Facebook page. Please provide me the relevant code for posting on Facebook ...
0
votes
0answers
6 views

How to get the custom fields of any table like event, contact etc Or all the fields in the tables thorugh Rest API in IOS

I am integrating Salesforce in one of my IOS application, I need to get all the fields by one query and the list of custom fields in any table with the help of IOS SDK Rest API. Thanks in Advance.
2
votes
0answers
14 views

Search layout lookup dialog REST access

I am able to look up search result search layouts via REST using the /search/layout/q=Account endpoint. But I would like to also read the lookup dialog search layout, like what you see on the web ...
0
votes
0answers
14 views

undefined method `model_name' for Force::SObject:Class when using form_for and force.rb

I am using the force.rb gem to connect with salesforce. In my edit views I am able to successfully create a form using form_for with fields that show data from salesforce as the textfield data and I ...
3
votes
1answer
57 views

Inserting Blob Data

I am using the SalesForceSharp .NET driver. Does anyone know if there is a way to insert blob data with SalesForceSharp similar to this reference? ...
2
votes
0answers
29 views

Rest API Authorization

We're trying to use the JSforce library (http://jsforce.github.io/) for javascript access to the salesforce api but we keep getting "invalid_grant" errors when trying to authenticate <script ...
0
votes
1answer
22 views

Delayed propagation when inserting data with the REST api?

I've noticed that if I create a contact using the rest api, it can take a few minutes before a query will return that new contact. Is there any way to speed up the propagation so it takes a few ...
2
votes
2answers
30 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 ...
3
votes
1answer
40 views

Using Restforce gem with SalesForce API and Oauth 2.0

I'm trying to use Restforce (https://github.com/ejholmes/restforce) to set up integration with my Rails app to SalesForce's API using Oauth 2.0. Restforce describes the initialization process as ...
1
vote
1answer
52 views

Setting up Salesforce to receive Leads from third party via Webservice

I am setting up my organization's Salesforce instance to accept Leads from a third party system via web-service. Following are the steps I took till now Created an Integration user in Salesforce. ...
3
votes
2answers
89 views

My custom REST endpoint is returning double encoded JSON. How can I make it stop?

Here is my current controller: @RestResource(urlMapping='/monitor') global with sharing class TheController { @HttpGet global static String doGet() { Map<String, Object> ...
0
votes
1answer
46 views

How to get Json response without rest api and parse the response in objects

I need to get json response and parse the response into the object(Without using http callout).I need to have application(class) which can get response from other callback url and parse that response ...
0
votes
1answer
19 views

Adding a ExactTarget calendar event using SOAP or REST API

Is it possible to add a custom calendar event to the Calendar pane in the Marketing Cloud interface using the ExactTarget API? I'm writing an app which does "stuff" and I'd like the app to add a ...
3
votes
2answers
97 views

Accessing external Rest service that requires callback

I am attempting to develop an Apex class/method that will callout to an external application via a Rest interface. This external application requires a callback URL be passed to it in the call, and ...
1
vote
1answer
97 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 ...
1
vote
1answer
24 views

Reading page layouts via REST returns 500 error with UNKNOWN_EXCEPTION error code for certain sobjects

It seems to happen mainly on 3rd party plugins, but it is only happening on a small minority. Here's an example sobject from a Conga plugin: "APXTConga4__Conga_Composer_Settings__c". SObject describe ...
1
vote
1answer
42 views

Identifying the callback to a SFRestRequest delegate

Is it possible and safe to set the SFNetworkOperation tag in the method initiating the request, and then read it back in the delegate method, to distinguish which request was made? Or is there a ...
3
votes
1answer
34 views

Can a Web Tab's url be get and set from Apex or the REST Api?

I would like to modify the url of my Web Tab for each SF organization that my managed package is installed on. Is there a way to get and set the url of a Web Tab from Apex or the REST Api? Is there a ...
1
vote
0answers
36 views

Why would describe layouts endpoint return ENTITY_IS_DELETED error

I am working on a project that uses OAuth against SF via REST on behalf of users from a variety of organizations. For one of our users, I am able to call SObject describe on their Account object and ...
0
votes
1answer
53 views

Does any one know any idea that how to integrate salesforce with fileNet

I am trying to integrate Filenet with Salesforce, and I need a starting point, can any one tell me where to start? There seems to be no easy to find information online.
2
votes
1answer
135 views

How can you download all profile pictures for all users in a given SF org?

I would like to retrieve all the profile pictures of all the people in my org. How would I do that?
1
vote
0answers
58 views

Calling REST API in Canvas with OAuth Webflow (GET)

I am developing a canvas application. For various reasons, I am hosting my application on a static host and use services as back-end. Therefore I am simply using OAuth Webflow (GET) instead of Signed ...
2
votes
3answers
85 views

Get the User Id of the user whose session ID I have using REST API

I have the Session Id(00Di0000000cm9A!ARIAQG4qWqmIxCCrnXRDFR2cPXt6KElMUaMvFTlhLyrr56bYwPyWZYXYjb4XXXXXXXXXXXXXXXXXXXXXXXXXX) and instance URL(na15) of a salesforce org , Now I want to get the User Id ...
3
votes
1answer
91 views

Is it possible to combine result-sets in REST API query?

I'm creating a sync engine for a mobile app, and I want to get meta data about the state of a whole lot of different objects in as few API calls as possible. Is it possible to pass more than one SOQL ...
2
votes
2answers
61 views

How to access KnowledgeArticle content via REST API

Does anyone know if it's possible to access KnowledgeArticle content over the Salesforce REST API? All I can find are the KnowledgeArticle and KnowledgeArticleVersion objects which seem to have only ...
8
votes
1answer
334 views

Can I create connected apps programmatically?

Is there a way to define connected apps w/o opening the UI? Has anyone already created apps like that? Any advice would be appreciated!!
1
vote
2answers
135 views

Using {!User.Profile} merge field in Javascript if statement

I have a business requirement where a new Quote record cannot be generated for a couple different Opportunity types. If the user tries, they get an alert. I've overridden the standard New Quote ...
1
vote
1answer
19 views

Getting SamlSsoConfig Object Data through REST API

I'm trying to get SAML url of a particular user via REST API. But I can't find the SamlSsoConfig Object in the list of sobjects returned. I'm wondering if the Object is not exposed. Is there a way I ...
0
votes
2answers
57 views

Can anyone give realtime usecases that best suits for integration using SOAP and REST APIs?

Can anyone give sample usecases that best suits for integration using SOAP and REST APIs? Because i am bit confused over selecting SOAP or REST for the integration between SFDC and SAP. Any Expert ...
1
vote
1answer
88 views

Attachment : Triggered Send using REST API

I need to attach pdf from my Apex code (Salesforce) Using REST API ExactTarget. This PDF is Unique to each email. Please share your ideas on to this I am trying to use ...
0
votes
1answer
23 views

Unable to authenticate xml file with login credentials using apex and connect to sql

Unable to integrate with salesforce and sql. I want to create an authentication details in xml file. can i authenticate xml file with login credentials using apex and connect to sql by uploadin in ...
0
votes
1answer
59 views

How do I get a user's timezone info?

What API call do I need to get a user's timezone? e.g. "America/Los_Angeles"
5
votes
2answers
58 views

System.StringException thrown when aborting a job in a rest controller

This code works in an Execute Anonymous window, but not when run from a rest controller: @RestResource(urlMapping='/scheduler') global with sharing class SchedulerController { ...
3
votes
1answer
47 views

Multiple sends through MessageDefinitionSends

Is there currently a way to batch triggered send requests through the REST API? All I'm finding in the documentation is triggering one at a time. Code Sample (removing the array and only sending one ...
0
votes
1answer
59 views

[{“message”:“limits resource is not enabled”,“errorCode”:“API_DISABLED_FOR_ORG”}]; HTTP Status: 403

I am trying to consume sales force rest api service in my application.At that time,i am getting this exception [{"message":"limits resource is not enabled","errorCode":"API_DISABLED_FOR_ORG"}]; HTTP ...
1
vote
0answers
145 views

“Server returned HTTP response code: 401 for URL: https://na1.salesforce.com/services/data/v26.0/”,

I am trying to consume sales force rest api service in my java application.At that time i am getting this error. "Server returned HTTP response code: 401 for URL: ...
3
votes
3answers
73 views

I am getting “exception”: “instance.salesforce.com”

I am trying to consume sales force rest api service in my application.At that time,i am getting this exception "exception": "instance.salesforce.com". Please observe my source code String ...
1
vote
1answer
49 views

Accessing Exact Target Campaign Reporting Information from the rest-api

Is it possible via the rest api to gather campaign metrics such as Sent, Opens, Clicks, etc.. I have been reviewing https://code.exacttarget.com/api/fuel-api-family-hub-0, not sure if i'm missing it ...
1
vote
2answers
26 views

API to get all sales stages

Is there an API where I can get all sales stages from an organization? Is a sales stage equivalent to a layout? I found this: Get all page-layouts for an object via API and maybe it's the same ...
5
votes
1answer
129 views

Two Way Authentication Into Salesforce?

Salesforce can use a SSL certificate to authenticate itself with a third party server, but can a third party server authenticate with a Salesforce in the same manner? Our use case is that we have ...
0
votes
2answers
148 views

Hello World Custom Rest Api endpoint not working

Salesforce provides a example of how to define a custom rest endpoint and how to make calls to that endpoint. It is not working for me. Why? I have successfully retrieved an OAuth token that I have ...
4
votes
1answer
139 views

Exact Target : REST API. “Individual Email Result” in salesforce to track mail

Related to previous Question: My Previous Question ok now got to know that its not tracked on Task, but an record under an object "Individual Email Result" is created and tracks the below fields ...
1
vote
0answers
66 views

Salesforce REST API Time-out after 4 callouts

Good day. I really need help on this issue. I have tries every possible option here. I use the Salesforce REST API using C#. The works 100% fine but after a couple of calls out to SF i keep on ...
1
vote
1answer
72 views

Exact Target : REST API. Salesforce

I am sending exact target Triggered send email in salesforce. How can we add an Attachment to the mail we are sending through exact target. Thanks,
1
vote
1answer
62 views

Exact Target : REST API. Task in salesforce to track mail

I am sending a triggered send email through exact Target. to track these mails i want to create a task in salesforce for each mail sent. I have seen this as normal behaviour when we send it manually ...
5
votes
1answer
102 views

Issue with REST API URL containing a plus sign

We are having an issue with our primaryKeys (email address) containing the plus (+) sign. Here is some example code from a node-fuel implementation for reference: fuel({ method: 'PUT', url: ...
1
vote
1answer
51 views

Can Protected Custom Settings be CRUD'ed via the REST API? (Created, Read, Updated, and Deleted)

Can a protected custom setting be created, read, updated, and deleted from the REST API? Is it the same REST API that is used for SObjects?
0
votes
2answers
128 views

deserialize the JSON string and also how can I save into account object

I retrieve the records from Account object and display JSON format in Visualforce page. How can I deserialize the JSON and store the result in Account object. my Visualforce < apex:page ...
1
vote
2answers
55 views

What is the simplest way to save form data into Salesforce using the API?

I have created a simple PHP contact form in my website and I want to save the data into Salesforce. I thought it would be really simpler. I have looked into the SOAP API but it looked over kill for ...