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

learn more… | top users | synonyms

2
votes
2answers
41 views

SOQL to get all Leads that were created on particular date or range

I am trying to a REST call from java and trying to query LEAD entity to get all Leads that were created on a particular date/date range. I am unable to get working query for the same. I am doing ...
0
votes
1answer
22 views

How do I pull a report summary to a Visualforce page as simple plain text results?

How do I pull a report summary to a Visualforce page as simple plain text results? I've been searching all over and haven't found a simple solution. All examples are confusing and all code has to be ...
1
vote
1answer
16 views

Can't create Apex Class, need to convert lead via REST

I'm trying to integrate Salesforce with another service using the REST API, but it doesn't have a way to convert leads. I found this other answer: How do you convert a Lead via the REST API? but I ...
-1
votes
0answers
18 views

Convert a lead using REST API [duplicate]

I know I can convert a Lead using the SOAP API, but I need to use REST to integrate it with another service. Is there any way to convert a lead using REST? I've seen answers that involve setting up ...
1
vote
0answers
6 views

Salesforce - Commcare integration

i am trying to integrate Commcare to Salesforce. Commcare provides its own rest api. From Salesforce, I need to call this api and upsert data into salesforce. Current approach is a scheduled apex ...
0
votes
0answers
8 views

Apex callout with .NET Rest service that returns outlook file as binary

I am trying to call a third party Rest service with Post method which return a outlook file as binary. I want to download this file at browser where browser gives option "open" and "save". Any help ...
1
vote
2answers
24 views

Why is CORS (localhost) whitelist not working for authentication?

So there are now settings to add domains to the CORS whitelist so they can access the REST API via javascript. I tried to get this to work using my localhost with an a local ssl so its ...
0
votes
0answers
18 views

User authentication in building an integration

We have an integration requirement in which we are creating a new record in an external system and then passing the id of that record to salesforce and finally updating the parent record in ...
3
votes
2answers
42 views

Possible Username-Password OAuth Authentication Flow security issues?

We have chosen to use "Username-Password OAuth Authentication Flow" over the "Web Server OAuth Authentication Flow" and "User-Agent OAuth Authentication Flow" because we need to login silently, ...
2
votes
0answers
30 views

How to check whether a user has write access to a field

I recently got this error: Faraday::ClientError: INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: LeadSource. Please check the security settings of this field and verify that it is ...
0
votes
0answers
12 views

ExactTarget REST API - Error Code 10006, no details

I'm trying to post data into an DX using the Fuel API, specifically as described here. This worked for a prior DX, but I was asked to change to a different one, where I'm receiving a rather unhelpful ...
1
vote
1answer
28 views

Sample 3rd Party APIs to practice Salesforce Apex callouts

Are there any sample 3rd party APIs that I could make use for practicing Salesforce Apex callouts.
-2
votes
0answers
17 views

I am newbie to salesforce Can anyone provide me links to learn integration with example [closed]

I am newbie to salesforce Can anyone provide me links to learn integration with one example each. Thanks in advance.
1
vote
1answer
25 views

Calling Apex REST class from post install script

I need to call an exposed Apex class in my dev org from the post install script. This post install script will run on the installation of the managed package on a clients org and will send the package ...
2
votes
0answers
21 views

Does a 304 response count toward api-usage count?

When making an API call with If-Modified-Since header - if the response returns with a 304-Not Modified will that use one of my call allocation? Also can the If-Modified-Since if supplied in a list ...
1
vote
0answers
18 views

Retrieve “Authorization” header using apex

I have an apex class which has access rights to a salesforce site @RestResource(urlMapping='/testsite/*') global with sharing class MyClass { @HttpPost global static void doPost() { ...
1
vote
1answer
59 views

Cannot use the contactEvents method to serialize Event data

I'm not sure if this is related, but since the March 6 Release, I haven't been able to serialize Event data into an Event Data Extension using the Fuel REST API contactEvents method. I've tried using ...
2
votes
1answer
35 views

Cannot associate Asset to Campaign - REST API

I am seeing a general error when trying to posting an Asset to a Campaign (Create a CampaignAsset). The post ability was working about 1 week ago. Even the SDK examples from FuelSDK-CSharp no longer ...
8
votes
1answer
65 views

Name field of Group sObject is Not Nillable but returns null

I request the metadata for the sObject Group via: GET /services/data/v32.0/sobjects/Group/describe/ HTTP/1.1 In the resulting JSON i see the following metadata at the fields property: { ... ...
0
votes
0answers
15 views

Get Instance Url with valid OAuth Access Token

How do I get the Instance URL with just a valid OAuth Access Token? I don't have any other information, for example, I don't have the client_id or client_secret. If I make an assumption that the ...
0
votes
2answers
46 views

Rest API request timeout

We use Salesforce integration with WCF service. Currently, we are facing an issue of operation has timed out. We add chatter feed with mention using REST API and other operations doing using SOAP API. ...
1
vote
0answers
16 views

Inbound REST integration web service

I want to get leads which is getting cerated on a another server, when every time it get created. Eg : In broadbean when the new person register i wan to save the information of the register person to ...
2
votes
1answer
110 views

Best design for an external-system-to-salesforce integration

We have to integrate our Salesforce Org with an external system (ES1). The integration requirement is as below: ES1 has a custom object CO1 and ES1 is the MASTER for this object’ records. This object ...
0
votes
0answers
16 views

EndPoint error; extract target, post

Could you anyone check the endpoints of extract target? It seems that I cannot get the right endpoints of extract target rest API. https://webservice.s6.exacttarget.com/Service.asmx cannot open. ...
1
vote
0answers
14 views

Creating Knowledge Articles with Rich Text Field

I have been asked to create a knowledge article with a Rich Text field in my org via NodeJS. So far i am able to fetch the records for the articles that i create manually. What i want to achieve is to ...
0
votes
0answers
18 views

Salesforce Workbench unknown asynchronous state

I've been using the workbench to test queries that I'll later run through the Restforce Gem to pull data into a Rails app via the REST API. The app is looking to build a report on a client object, ...
1
vote
1answer
19 views

“Service Requires SSL” error message while retrieving the tracking history of a message to a mobile number

I am just retrieve the tracking history of a message to a mobile number and I'm constructing a GET method by url, ...
1
vote
0answers
21 views

ExactTarget — SMS/ POST/message/optin

I'm trying to create a sms opt-in message through rest UI. Below is the JSON request I formed { "messageName":"TESTMESSAGE1234", "shortCode":"86288", "countryCode":"US", ...
0
votes
0answers
17 views

Monitoring changes to apex objects using Webservices

I have a use case in which I will be getting data based on the services I publish from Salesforce (REST or SOAP). The external system will call our exposed methods. We don't want to do the database ...
0
votes
1answer
42 views

How to create bulk record using rest API?

Example for creating an Opportunity : curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @newrecord.json ...
0
votes
1answer
22 views

backbon.js mobile pack sample application

I am referring sample application for mobile pack for backbone.js ...
0
votes
0answers
28 views

How can I detect which fields are being tracked by Chatter via REST

I need to detect via REST API, which fields have been enabled for Chatter object feed tracking. Just to be clear it is the setup option found here: Setup > Customize > Chatter > Feed Tracking ...
0
votes
1answer
25 views

How to retreive user information using api call and passing values in it

How to retrieve different users email , company name address using api call and passing firstname and lastname?
0
votes
0answers
20 views

Corrupted file error after creating Attachment from data(attachment) from Other SalesForce Instance through Rest Api

We are facing issue when we create Attachment record in Apex, using the data that we get from Rest Api from another instance. Tried with Blob.ValueOf(responsebody), ...
1
vote
1answer
90 views

Create Opportunity Using rest API; Error : 400 bad request in response

Example for creating Opportunity curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @newrecord.json -X ...
6
votes
1answer
134 views

REST API - Retrieving records linked to a contact object

I'm attempting to use the REST API to pull out the contact record for a Client object and then retrieve all associated data from objects that belong to that Client. There are 28 pertinent objects (a ...
1
vote
1answer
25 views

Access “Anyone with link” properties (and link) using REST API

I have an attachment with "Anyone with link" sharing configuration. How can I retrieve (or construct) the actual sharing URL using the rest API? E.g., I have an attachment with id: 069240000009bdU ...
1
vote
0answers
32 views

ASP.net HTTP request with patch method

Example for creating Account curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/customExtIdField__c/11999 -H "Authorization: Bearer token" -H "Content-Type: application/json" -d ...
2
votes
1answer
24 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
38 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
33 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
30 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
39 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
31 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
33 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
27 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
20 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
91 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
24 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
12 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 ...