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

learn more… | top users | synonyms

-4
votes
0answers
29 views

Regarding Apex Class in Salesforce [on hold]

I have Written in Apex class in Rest Services using Get Method @HttpGet global static String doGet(){ RestRequest req = RestContext.request; RestResponse res = ...
2
votes
0answers
23 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
9 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
102 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
29 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
21 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
25 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
25 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
14 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
18 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 ...
-1
votes
0answers
26 views

Not Able to insert record using REST call via VF page

function insertAttachment() { $.ajax({ contentType: 'application/json; charset=utf-8', data: { "ParentId": "a0ab0000005kdfr", "Name":"sdsff", ...
1
vote
0answers
11 views

Bad request error and Case field data formats

I am quite new to Salesforce development. I am working on Laravel project that sends data collected from the users to Salesforce using Salesforce's REST API. The data collected from the users ...
0
votes
0answers
16 views

How to setup WAMP to integrate PHP with salesforce REST API

I'm trying to integrate Salesforce REST API with PHP. i'M using WAMP server as my localhost. But whenever I tried to run the PHP script for Oauth authentication, I get error ERR_CONNECTION_REFUSED on ...
0
votes
1answer
35 views

Regarding Rest Services using Rest Api

@RestResource(urlMapping='/Account13/*') global with sharing class MyRestResource13 { @HttpPost global static string sendAccount(){ RestRequest req = RestContext.request; ...
0
votes
0answers
22 views

How to get shopify API in Salesforce?

I am trying to get the Shopify Api by using apex. I am unable to find any Connect Api call that returns to sandbox and import product data. Any suggestions how can this be achieved. Any suggestions ...
2
votes
2answers
96 views

Processing a json api response using JSONParser class

I am new in using JSONParser class, I am struggling a bit to understand how to use it. The string that I want to use this, is a reponse from an API call, it is a really long string (about 5.4 million ...
0
votes
1answer
25 views

Writing nested custom object records

I am using the REST API to write a set of nested records to a Salesforce developer org. I can successfully run the sample on this help page and can also write a custom object record with no nested ...
0
votes
2answers
20 views

Create Subscriber in Exact Target from External Salesforce Org

We have a simple requirement of creating a subscriber in an Exact Target Org from an external Salesforce Org. The requirement is on webpage on click of a sign-up button the user email id will be used ...
10
votes
0answers
123 views

Records not being indexed or found with global search

I've come across an issue where Salesforce doesn't seem to be indexing records in a custom object that are created through the REST API. When searching for a record name or external ID no results are ...
0
votes
0answers
35 views

Calling SFDC REST API from Mulesoft

i have implemented rest API class in salesforce. I need to consume this rest API from mule soft. I tried with salesforce connector . but trowing error like "failed to invoke apex rest api". ...
0
votes
0answers
21 views

Issue signing a PUT request to Amazon AWS S3 REST API

I am receiving the following error when sending a PUT request to the S3 REST API to upload a file into a bucket (using AWS Signature Version 2): The request signature we calculated does not match ...
0
votes
0answers
12 views

Handling INVALID_SESSION_ID from the developer end. [duplicate]

In our mobile app, customer is trying to add Lead and Contact to Salesforce and he is getting the below error [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}] And we are ...
0
votes
1answer
22 views

Updating the SubscriberKey on the All Subscriber table through the API

I'm trying to update an existing Subscriber in the All Subscriber Table through the API; i've set up the AppId in the App Center and have connected and created Subscribers, but i'm still having issues ...
1
vote
1answer
47 views

INVALID_SESSION_ID error while trying to save Lead or Contact

We have developed an mobile app for Salesforce with OAuth and using the REST API V34 and released it to the customer. And customer can able to login to salesforce from the app but when he tries to add ...
0
votes
1answer
16 views

Force.com rest API works in with sharing mode is there a way that we can run in without sharing mode

Is there any way, using force.com REST API can we bypass the permissions(Objects and fields like without sharing context)
5
votes
1answer
169 views

How does query() API call count against my daily limit?

My organization is hitting the daily API call limit and -in order to optimize our use of Salesforce- I'm trying to understand how Salesforce counts API calls. The count for REST methods is pretty ...
6
votes
3answers
607 views

How can a record be undeleted using the REST API?

The SOAP API has an explicit undelete() call to restore deleted records from the recycle bin. Is there an equivalent resource for the REST API to undelete records? I see ways to find records that are ...
2
votes
1answer
26 views

What is the current REST URL endpoint for badge definitions for work.com badges?

I was reading through this doc on how to change the default badge that is used in the Thanks! quick action. But the endpoint url mentioned is a much older version. Work.com Quick Guide: Changing ...
0
votes
0answers
12 views

audio file transcription

I am looking for a solution (salesforce app or cloud service) that i can call from my salesforce instance to have auto files (mp3) transcribed to a text file. I obtain audio recording from my ...
2
votes
1answer
27 views

Cannot store JSON object in Data Extension

We are storing a JSON object in a Data Extension field, then using GTL to parse the JSON and retrieve nested values in the object. It's working really well. However, the challenge is to get the JSON ...
1
vote
0answers
22 views

Enable Lead field history tracking via api

I am using ruby gem restforce for salesforce api implementation. I am not finding a way to enable the Lead history tracking using api. Where as I can retreive the history if enabled from dashboard. ...
2
votes
0answers
10 views

Case Closed Layout REST API

Anyone our there know if there is any way of retrieving the Case Closed Layout details using REST APi at all?! My googling skills are not coming up with any trumps here
1
vote
1answer
16 views

How to encrypt salesforce data

How to encrypt salesforce data and send it through rest api to third party system? I need some sample code to get started. Thanks in advance.
0
votes
0answers
25 views

Time taken for REST API call

How can I find the time taken for a REST API call to salesforce?
0
votes
0answers
27 views

Rest API: Search salesforce folders and files form document and content document

I am able to search the salesforce files from document root and content document using Search for a String API. Using FIND {SearchQuery}, the salesforce allows finding from the document and content ...
0
votes
0answers
17 views

Salesforce Authorization Error while testing the Test-Only Initialization URL for “Microsoft Translator - Text Translation” API

I am trying to create the Salesforce Auth Service Provider of type Microsoft Access Control Service so that I can do the REST API call to "Microsoft Translator - Text Translation" API. I have done ...
1
vote
1answer
69 views

System.JSONException: Malformed JSON: Expected '[' at the beginning of List/Set while deseriliasing json Payload

> I have resolved the issue updating answer for my own question thanks for response Stack-exchange great help everytime : > > > 1.Malformed JSON: Expected '[' > > ...
2
votes
1answer
42 views

403 - Forbidden Cannot authenticate user

Not understanding why I am getting this error if I check this URL in Soap UI it is working perfectly. Getting this error after setting body 'Input is not valid JSON at character 1 of ' public static ...
3
votes
0answers
59 views

Problem with JSForce

I am trying to access the REST API using JSForce. I am connecting fine via OAuth, signing in and being redirected to where I need to be with my access token, etc. After that I am trying to access the ...
2
votes
1answer
33 views

Architecture Discuss: Apex class/trigger or REST API for indexing?

I'd like to build a system that can load the large volume of data for various users, with deduplication(when the records have existed in users' SFDC, the system should not insert it again) against the ...
1
vote
0answers
16 views

Accessing Email over the REST API using version 36

I am trying to access the EmailMessage sobject through REST API using version 36. All i get is "Resource does not exist". Any help would be great.
0
votes
0answers
10 views

How to authenticate to ExactTarget REST API? Currently receiving 40001 error

I need your help resolving the following response when posting to the /contacts endpoint using the REST API. { "message": "Request is not authenticated.", "errorcode": 40001, "documentation": ...
1
vote
0answers
19 views

BlackoutWindow usage?

I've done a search and this is the closest reference I could find... What time formatting is used within the blackout window for the REST interface /messageContact/{id}/send? My question though is ...
0
votes
0answers
21 views

How to make REST Callouts from Visual Workflow?

We have a requirement where we need to accept some inputs (couple of text inputs) from user and pass this input to a REST Service which will return search results(List of a custom class) based on the ...
0
votes
1answer
48 views

java.security.cert.CertificateException: No name matching

I am getting this error in rest apex callout: java.security.cert.CertificateException: No name matching da1.camso.co found. Not sure why I am getting this any certificate I have to or they to add ...
4
votes
2answers
130 views

Retrieving entire org via the Salesforce API

Is there a method in the salesforce API that allows you to retrieve the contents of the org as a zip file? For instance MavensMate, Illuminated Cloud, and every other Salesforce IDE I have seen has a ...
0
votes
0answers
19 views

Intermittent Query Timeout via API

Recently we've seen some intermittent query timeouts via the API. (i.e. SF queries submitted via inbound API requests). These are queries that consistently take less than 10 seconds when executed ...
1
vote
1answer
34 views

Connecting to Salesforce using AngularJS

newb here. I am trying to log in to a Salesforce account using AngularJS ForceNG and pull the data out of an object so I can post it on an Ionic page. I want to hard code the login and password, ...
0
votes
1answer
23 views

Set lastmodifieddate and/or createddate of a document when uploading with the REST API

I am making a rest call for inserting a document Can someone please suggest how to set the lastmodifieddate and/or createddate of a document when uploading with the REST API
1
vote
1answer
34 views

Complex Json deserialize using JSON.deserializeUntyped

How to de-serialize following array of response from the url??I have to pass time stamp in the URL as follows:Tried Json to apex too but as it is post method can't use that. String startdate= ...