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

learn more… | top users | synonyms

0
votes
1answer
8 views

Can we insert multiple records in sObject using REST API post method without using apex class in workbench or postman

/services/data/v36.0/sobject/ObjectName and { "name" : "some name", "Description" : "Some Description" } By using above url and request body we can insert a single record in object with post ...
1
vote
0answers
5 views

OAUTH 2.0 JWT How can I access request from client side to send JWT token to client application.

I am very new to the Oauth spec. I have done a lot of research but could not find the answer to what I should do. My task is currently my client application is using Salesforce as OAuth provider. So I ...
0
votes
1answer
16 views

How to insert multiple records in an object using REST API post method in workbench

By providing following uri and by using following Request Body, we can insert a single record in a sObject uri: /services/data/v36.0/sobjects/sObject Request Body : { "field1" :"value1", "field2" ...
0
votes
0answers
11 views

Salesforce REST Callout to Azure AD

When i make this callout to Azure from Apex, I get the result to be the login HTML page reuturned. I need the JSON token to be returned instead. Http h= new Http(); HttpRequest acReq = ...
0
votes
0answers
18 views

how to give request uri to access http put method without using apex class in workbench and postman

enter image description here Put Method is Not working for any Requests whereas all Methods are Working Good can anyone Please guide me for the Answer
-3
votes
0answers
13 views

I need an API to migrate Data from Eloqua to Salesforce Marketing Cloud [on hold]

My company has just decided to move to Salesforce Marketing Cloud from Eloqua. Eloqua currently has very poor migration tools, meaning we are having to build APIs to do this. I will appreciate it if ...
0
votes
0answers
21 views

Rest API to retrieve Data Extension [on hold]

I know there is SOAP API to retrieve rows from Data Extension of Exact Target. However, the consumer is Mobile. I was going through the documentation and cannot find any REST API to retrieve rows from ...
3
votes
0answers
23 views

I try to backup of records to another org

I have a question. When i integrate salesforce to salesforce I got 160000 record from the response. How can I save record in my org.? I try to backup of records to another org. IS it possible or ...
0
votes
0answers
11 views

Run a Report and dashboard from vf page using Analytics rest api [on hold]

I created a Custom Object. I want to run a report & Dashboard using Custom Object data in the vf page. Using analytics rest api.
2
votes
1answer
25 views

Rest API - /interaction/v1/interactions/{id}

In the definition of the Rest API call for interactions it calls for and ID. What is this ID, and can you get a list of them from other API calls, if so which API call? API-GetInteractionByID
0
votes
1answer
8 views

Case Queue in API as attribute on Case?

I was wondering if it is possible to retrieve the value that the case is assigned to by using the api similar to how I retrieve other values associated with the case. I am currently using the ...
2
votes
0answers
15 views

ExactTarget API GET /interaction/v1/rest not working/not authorized

I can't seem to get the GET /interaction/v1/rest API to function properly. I receive the following data when I call it: {'documentation': 'https://code.docs.exacttarget.com/rest/errors/403', ...
2
votes
0answers
15 views

Assignment Rules are not triggered when leads are created / updated using REST API

I am making REST calls to my org to create or update Cases and Leads. Using Sforce-Auto-Assign: TRUE or FALSE, I am able to control the auto assignment rule execution on Case object but this same ...
2
votes
1answer
23 views

how to create a record in workbench using REST Explorer

I am trying to create a new account record using post method in work bench. But I am unable to follow exact format of map url and it is giving the following error. Please suggest me a correct way how ...
2
votes
1answer
42 views

how to send pdf file from apex form

i am trying post pdf file from visual page to my controller using apex:form and send it third party using rest api, but on controller end i am not getting my pdf file.its field is null, visual page ...
1
vote
0answers
13 views

Google as OAuth2 Provider to Log In from Mobile Device

I'm trying to login to Salesforce in a Xamarin app through Google in order to get a valid bearer token to interact with my custom Salesforce REST API. It works just fine if I point Xamarin.Auth to ...
1
vote
2answers
30 views

How to save bulk data with some conditiond

i want to save following JSON data to "myObject__c". suppose i have already "test1@gmail.com" and "test3@gmail.com" in my salesforce object. So how can i save following data in "myObject__c" except ...
3
votes
1answer
116 views

Unable to parse large JSON in APEX

I have 52 keys and pairs in my JSON data, and I want to parse it, but the APEX method only supports 35 arguments to the method. Then how can I parse large JSON data with the APEX class? My JSON is: ...
3
votes
1answer
57 views

How to call Standard REST service in POST request using JSforce?

I am using JSforce, a module of Node.js for Salesforce. The login credentials are obviously not correct in this script but they are correct in original script and they are working fine. Here is app.js ...
0
votes
1answer
42 views

Exact Target REST API Can't Create Send Definition

I am trying to create a send definition via the Exact Target API. I've been using POSTMAN to test my API calls. When I submit a create send definition call I am getting the following error: { ...
0
votes
1answer
33 views

JSON Parser show: Expected WooProductModel.Image but found [line:1, column:2491]

I am trying to parse a JSON response from my own site. All the fields are populating with the exception of images. Not sure what I need to do to get the images data. Any help is much appreciated. My ...
0
votes
0answers
24 views

Calling a modal dialog from an inline VF page

I have an inline VF page on a stock page ( any ). Inside that VF page I want to call a modal dialog that will show outside the viewport of the VF page (inline section is small and dialog content is ...
2
votes
1answer
37 views

Error 500 when using Live Agent REST API with prechatDetails

Hello I am developing an iOS app allowing to chat with a service agent using live agent. The app is using Live Agent REST API. Everything was working fine till I added prechatDetails to the ...
5
votes
1answer
41 views

Salesforce Standard REST API To Insert Leads

We have a use case to build API to accept list of leads in JSON Format to insert leads in Salesforce and have to return the response with inserted records count and error messages if any For this, I ...
0
votes
1answer
20 views

API User for Online Forms [closed]

If I were to use the REST API to log Cases in Salesforce is there any best practice to follow? Specifically should I set up a User specifically for API submitted requests or should I simply use a ...
3
votes
1answer
24 views

I'm getting DUPLICATES_DETECTED errors when creating accounts that are not duplicates, via REST

When creating new accounts by posting to /services/data/v36.0/sobjects/Account/ I'm getting DUPLICATES_DETECTED where there are no duplicates. When posting this JSON, this account is created ...
1
vote
2answers
30 views

Live Agent REST API: AgentDisconnect usage

According official guide, "AgentDisconnect" just has explanation as follow: Indicates that the agent has been disconnected from the chat. but I don't know how to utilize it. can someone give me ...
2
votes
1answer
20 views

Call an external API upon new user creation

Is there a way to call an external REST API from Salesforce once a new user (customer) has been created in the system? This should be an automatic process and the API will be called right after the ...
0
votes
0answers
17 views

Error 10006 with DataEvent on a Shared Data Extension

i try to Update an Shared Data Extension with the REST API. PUT /hub/v1/dataevents/key:SendID/rows/Field:NewsletterID HTTP/1.1 Host: www.exacttargetapis.com Authorization: Bearer ... Content-Type: ...
1
vote
1answer
32 views

Using Rest API to create a SendDefinition sending to a DataExtension?

We want to send an Email from an external Tool with the Marketingcloud. The Email is completely defined in MC and there is also an Dataextension with all Targets in MC. Our prefered API is the REST ...
1
vote
1answer
58 views

Using Python to send POST request with REST API on Wave Analytics

this is a follow on from this question Something is wrong with my saqlquery string variable I am passing as 'data' to the api. The below code is returning the response ...
7
votes
2answers
40 views

Cannot query UserRecordAccess for Tasks

I am running my query using the Rest API, but I have reproduced the issue in Workbench as well. The below query works for Account, Opportunity, and Contact, but fails for Task: SELECT ...
-1
votes
0answers
21 views

ExactTarget REST API for markerting emails subscribe and unsubscribe

Is there any REST API for exact target that can be used to subscribe and unsubscribe to a list? There are ways in SOAP based jdk
1
vote
0answers
12 views

How can we integrate sharepoint and salesforce with or without third party app?

How can we integrate sharepoint and salesforce with or without third party app?Any help will really helpful for me.
4
votes
1answer
46 views

Can't create new contact via API

I am using the ExactTarget REST API. I am able to get my access token successfully via OAuth and can make some GET requests (i.e. https://www.exacttargetapis.com/contacts/v1/schema) that return the ...
1
vote
1answer
14 views

Salesforce download Document Body with Ruby and restforce gem

i try to download a file from Salesforce using restforce with Ruby. https://github.com/ejholmes/restforce sf_template = client.find("Document", "015b0000002oWdu") i get my document, but when i try ...
2
votes
1answer
31 views

Getting error in test class System callout exception

I am consuming webservice rest api(post method) in apex class using webservice static method.i wrote test class but i am getting System.CalloutException: You have uncommitted work pending. Please ...
2
votes
0answers
46 views

How to retain sessionId within Live Agent

We're implementing a Salesforce LiveAgent chat for our website, and we want the chat to appear in the bottom right corner of the page, not a popup. My question is: is this even possible while ...
1
vote
1answer
41 views

Invalid Query Locator error on simple query

I am trying to execute a very simple query on a standard Case object via the REST API but am receiving an INVALID_QUERY_LOCATOR error. My query is: SELECT Status FROM Case WHERE ...
3
votes
1answer
71 views

Accessing the Salesforce API for the first time… using python

Really early days for me learning to use the API as well as Python. The code below Authenticates and passes back the token correctly - but I have no idea how to pass the session ID in the code ...
3
votes
1answer
104 views

Upload ~20mb file to Salesforce via REST API

I'm looking for the API call (or set of) that will allow me to upload a roughly 20mb file to somewhere in Salesforce that would later let me process this file via APEX to update various objects based ...
2
votes
0answers
35 views

Can not insert FeedItem through apexrest

When trying to create a FeedItem through the ApexRest I'm always getting the following error: [{"errorCode":"APEX_ERROR","message":"System.DmlException: Insert failed. First exception on row 0; ...
0
votes
0answers
16 views

Salesforce Integration With Amazon MWS

I'm trying to get data from Amazon Seller Central to Salesforce. So I'm using Amazon MWS. After I Invoke the Class I'm getting 400 Bad Request Kindly help me to resolve this issue. public class ...
2
votes
1answer
123 views

API JSON response too long to process

I am trying to process a string that is the result of an API call. Unfortunately the return value is a really long String (nearly 6 million characters, Length: 5468120), so when I am trying to do ...
3
votes
1answer
35 views

Create test Class for RESTFUL WEB SERVICE CALLOUT

Good day everyone, I am trying to create a restful web service callout everytime a contact in created,updated or deleted. I used this link as my reference ...
1
vote
1answer
42 views

ExactTarget Triggered Send is not processing any messages

I have created a triggered send in Exacttarget which I am calling via APIs (SOAP and REST). While trying out the REST APIs I ran into two errors after which the triggered send has stopped processing ...
1
vote
0answers
49 views

SSL certificate problem: unable to get local issuer certificate, curl_errno 60

I'm trying to integrate PHP script with Salesforce by following the example on the link: http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php But I get the error ...
1
vote
3answers
35 views

Converting from cURL to Http request Method in Salesforce

Kindly suggest me where I'm I going wrong, It works perfectly fine in cURL but when i try doing in in salesforce I'm facing all these Issues This is My cURL curl -H "Authorization:Bearer ...
0
votes
0answers
17 views

PostMan GET difference between sandbox and Dev Edition

In Developer Edition ,while we accessing the Postman using Get Method ,the request should be in Postman will be https://ap2.salesforce.com/service/data/v36/apexrest/Pharmacycom/v1/ProfileService/ But ...
1
vote
1answer
21 views

Rest API returns No_Access error to System Admin for userinfo call

We have used oAuth in our manage package. This package have oAuth flow and it works fine for all client except one. When we call /services/oauth2/userinfo it returns 404 (not found) — No_Access ...