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
18 views

Cannot retrieve Contact schemas using Fuel REST API

I need to retrieve the collection of all Contact data schemas contained in an account. I'm using this documented method: Authorization: Bearer [accessToken] Content-Type: application/json GET ...
2
votes
1answer
29 views

Is it possible to add rich textbox with image via rest?

I'm wondering whether it would be possible to add text with image to rich text area field by rest. How should be done and how would i have to make such a request?
0
votes
1answer
22 views

RestRequest Create Custom Object

I'm using the android salesforce SDK. I am connecting to a sandbox and am trying to create a custom object, however I keep getting a 404 error: ( 4097): [241] BasicNetwork.performRequest: Unexpected ...
0
votes
0answers
21 views

Salesforce with JIRA integration via REST API

I am new to integration.. I integrated JIRA to Salesforce via REST API but now I am getting the below error. FATAL_ERROR|System.JSONException: Expected jiraConnect.attachment but found [line:1, ...
-1
votes
2answers
35 views

How do I delete a Data Extension using the Rest API

I can create rows but I cannot delete them. How do I do this using the Rest API?
3
votes
2answers
28 views

Apex: Error ORA-01460

I've developed an apex API on salesforce which performs a SOQL on a list of CSV data. It has been working smoothly until yesterday, after making a few changes to code that follow the SOQL query, I ...
3
votes
1answer
31 views

Checking delivery status of an SMS

I'm using the Fuel REST API postMessageContactSend method to send an SMS to a subscriber. I receive the following response for my request: { "tokenId": "MTFjQjgzV2VFa2Vlcks5VnZadkhuQTo3OTow" } I ...
1
vote
0answers
18 views

Is it possible to send Emails using only the REST API

There are a couple of similar questions on StackExchange but the only answers reference APEX code. Is it actually possible to send an email using only the REST API? I am looking for a REST-ful way ...
0
votes
0answers
18 views

Fastest REST API login method

I have a ruby on rails application that is using Restforce. I currently have a config file of environmental variables that I access everytime I submit a request. I'm using the username/password method ...
0
votes
1answer
68 views

How does the ExactTarget Email preview REST API work?

I am trying to make a rest call to ExactTarget to preview Email. But the REST API is not returning the response for all the Emails on ExactTarget. Sometimes the API does return Email for preview while ...
2
votes
1answer
21 views

Serializing Event data for multiple Contacts using contactEvents method

I'm using the Fuel REST API contactEvents method to serialize Event data into an Event Data Extension. The following request works: { "contactKey": "susan@sausage.com", "eventDefinitionKey": ...
1
vote
1answer
10 views

Cannot get publishing status of an Interaction

I'm trying to get the publishing status for a specified statusId provided in the response from making a publishAsync request but I get the response: <h1>596 Service Not Found</h1> I'm ...
1
vote
0answers
15 views

Salesforce API reset password not working for certain accounts

I have a Salesforce support cases self-service partner portal built using the Force.com PHP Toolkit. Everything is working fine with the portal except for certain users cannot use the "Forgot ...
1
vote
1answer
31 views

How to escape Salesforce search query

I'm using the Salesforce ruby gem to do the following @client.search("FIND {#{@email}}") @email returns the user's email address. During testing, I had an email address like test+test@example.com ...
1
vote
1answer
30 views

API Triggered Emails not sending

i´m using the REST API to send triggered Emails, everything was working perfectly a few days ago, but now when i send a request for a triggered Email i get a "202 Accepted" code, and the API says the ...
0
votes
0answers
10 views

Generate Complete XML using the RestForce similar to package.XML

is it possible to generate the complete XML similar to the Package.XML which is created using "Eclipse+force.com "... the documented REST API doesn't reveal complete XML it only exposes Fields and ...
4
votes
1answer
29 views

“Not Enough Space” when using RestForce to get the Metadata of Account object

Im Using a developer account, just created to Test retrieve and deploy Metadata using RESTFORCE. r.get('data/v20.0/sobjects/Account/describe/') the above line throws that error. the get request ...
0
votes
0answers
32 views

Using Apex to retrieve a file from an external Restful Web Service

I want to query an external service, get a file, and attach it to an existing Contact. However, I'm having trouble retrieving the document via a REST request. My code is below. Any Suggestions? ...
2
votes
2answers
39 views

Upsert into Contact without knowing AccountId but relate to existing Account

I upsert into Contact with external id using REST API like this : https://myinstance.salesforce.com/services/data/v32.0/sobjects/Contact/clinician_id__c/1000 I send PATCH request along with Contact ...
-1
votes
1answer
22 views

SMS List of Numbers Subscription Status

Is there currently anyway to do any of the following .NET Soap or REST either way is fine. 1) Retrieve SMS numbers that have OptIn or status of "Subscribed" 2) Request list filtered by daterange ...
0
votes
1answer
33 views

Request Token Fails with 401 Unauthorized

Just set up a new API Integration account and connected it to our Exact Target account. Every call to the REST refresh token endpoint returns 401 Unauthorized. We have another account/API Integration ...
0
votes
0answers
26 views

Inbound REST API from Tomcat - Is a certificate required?

I am trying to do inbound API calls from a tomcat server running on my laptop. This will use the same system account for every call. I am using the oAuth user-password flow, calling ...
1
vote
1answer
125 views

Exact Target custom activity output as another activity's input

I'm working on a PoC involving custom activities. I've been able to adapt Drew Simmons' excellent example so that fields from one of my data extensions are injected as inArguments. The trigger event ...
3
votes
1answer
32 views

Can I find the field that will be updated from a WorkflowRule

So I have two workflow rules that fire when an Opportunity is created/updated. These two workflows set the same variable to either true/false depending on which criteria is met. I'm looking at ...
1
vote
0answers
12 views

Access to a shared Chatter File's Public file raw data URL

I've been trying to setup an app that will directly link to public chatter files. The best I have been able to get so far is the Flash applet available from the fileViewUrl link, retrievable with ...
1
vote
1answer
42 views

Formula Field from REST Service

So here is an odd question. On our Opportunity object we have a formula field. Is there anyway to pull in the actual formula calculation through any API, APEX, REST, SOAP? I have an iOS app and a ...
1
vote
1answer
38 views

Using the REST API to retrieve custom objects

Using the REST api I can retrieve built in objects like Account, Contact, etc. However, whenever I try and retrieve custom objects I always get back a 404. I've got full access granted on the oauth ...
1
vote
0answers
40 views

Live agent chat in bottom corner of page, not popup

We're implementing a Salesforce LiveAgent chat for a customer, and they want the chat to appear in the bottom right corner of the page, in a layer, not a popup. My question is: is this even possible ...
2
votes
1answer
54 views

Returning Oauth token with REST API via PHP arrays when trying to send new contacts

In the salesforce REST API documentation, it tells how the system can give Oauth Tokens (https://code.exacttarget.com/apis-sdks/rest-api/v1/auth/requestToken.html ) But I don't seen any documentation ...
5
votes
1answer
61 views

Apex REST class - why can't I have multiple Apex methods for the same HTTP method?

This is a newb question. The following is my Apex REST Class. @RestResource(urlMapping='/Expense/*') global class MyExpenseWebService { @HttpGet global static Expense__c getExpense() { ...
1
vote
0answers
31 views

backbone.js in Salesforce1

I am starting to build some mobile samples in Salesforce1 using backbone.js I came across two js libraries - Backbone.Force https://github.com/pwalczyszyn/Backbone.Force this extends backbone.js ...
0
votes
1answer
38 views

Simple REST API Web Auth

I've been banging my head against the wall with this. I'm ultimately trying to connect to my Developer instance using the REST API, but no amount of gems or writing my own has helped. Now, I'm ...
1
vote
1answer
20 views

Does the REST API Message method support data extension attributes

I have a use case for a transactional message where the web service would like to push information from a purchase order as data attributes not associated to the subscriber profile at time of send ...
1
vote
1answer
25 views

Duplicate field names not yeilding results in Rest API Call from Salesforce to Salesforce

We are trying to view One Salesforce instance results in another Salesforce. We have an API Call Which Works. But when we do a Query like: Select Name, Owner.Name from Account We get the account ...
0
votes
1answer
19 views

Fuel API (Python) Starting an Interaction (Program)

I'm currently in the research phase of which API will suite our needs, one of which is starting a Program (which will likely contain a transfer step, import step, user initiated send step). In a ...
2
votes
1answer
38 views

redirect_uri mismatch

I am implementing an integration that will use the Sales Force REST API. I am following this as reference: ...
0
votes
0answers
26 views

API access security in salesforce

I have batch class which fetch data from API url & insert that data into salesforce. Our other team which is working on API from other side they need to set security so that only our saleforce ...
0
votes
0answers
25 views

Sending binary/blob data from SFDC to external system through Rest?

I have an requirement where I need to send the attachments along with account information in a rest response. I am planning to write a custom REST webservice where I can return account information and ...
0
votes
2answers
40 views

How can I convert a Lead to an Opportunity via the REST API for a Connected App? [duplicate]

I have a connected app, which authenticates with Salesforce using REST API via OAuth. How can I convert a Lead to an Account/Opportunity etc? There was some previous solution mentioning Apex, but this ...
1
vote
2answers
85 views

How to retrieve multiple contacts with single REST call

I am getting 20 contact ID from getUpdated.Now I need information for each of these 20 contacts.It seems costly to request each contact through a REST url.Is there any way how I can query multiple ...
0
votes
1answer
25 views

REST API not enabled for org - whitelisted managed package

We have a managed package in the AppExchange that leverages the SF REST API for data access outside of our users' orgs. Within our managed package is a RestResource class that verifies the user's ...
0
votes
1answer
24 views

How to determine if subscriber is opted in for API triggered email

We are configuring a triggered send in our ET account that will be deployed via an external API. We want to determine if the subscriber is still opted in before we send. How is this possible?
3
votes
1answer
220 views

Can't invoke @InvocableMethod via the REST API

I've been trying to use the new Spring '15 functionality related to Invocable Actions / @InvocableMethod / @InvocableVariable using the current documentation: ...
1
vote
3answers
64 views

How to use the REST API to get array from the Opportunity Object in JSON format from the Opportunity object using SOQL?

I'd just like to get an array of the opportunity data within Salesforce Visualforce so that I can manipulate it in Javascript. Below is the query that I'd like to use to pull in the array: select ...
2
votes
1answer
28 views

Connecting Live Agent to Custom Dashboard

Has anyone had success exporting live queue and agent counts, from Live Agent, to an external dashboard or database? Specifically looking for, "How many agents are logged in to a queue", "How many ...
1
vote
1answer
25 views

If I connect through multiple users to Salesforce Bulk API, what counts toward API limit?

As stated by the title, I'm not sure if, having a connected app, the API limit is reached based on my license or users (they come from different customers, so each user has his own license with his ...
2
votes
1answer
41 views

Burp suite rest webservice callout

We have been asked to do a BURP Scan of our Salesforce app during security review. Our application is built completely on Force.com platform but we have 1-2 REST webservice calls to external server. ...
2
votes
2answers
57 views

contactEvents method returns Internal Server Error

I'd like to use the contactEvents method to insert external Event data into a Data Extension, and fire an Event (which in turn will start a Journey Builder Interaction). Here's what my data ...
2
votes
2answers
75 views

Access the force.com REST API with a pure Javascript page

I want to develop a front-end in Javascript (possibly with one of the fancy frameworks around such as AngularJS) that consumes the REST API of my Salesforce org. I don't want to embed my project in ...
1
vote
3answers
37 views

Converting Date from API response to Salesforce Date

I have a string field in an API response (JSON format) which is meant to be a date. The response field is below: "due":"/Date(1385841600000-0800)/" How can I convert this to an apex date?