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

learn more… | top users | synonyms

0
votes
0answers
9 views

Bulk API Session ID

I have a trigger on a custom object which one certain conditions call a future method. The future method calls a Salesforce REST function. This rest function calls a PDF VF page, stores a body as an ...
1
vote
0answers
34 views

You are not authorized to access this API

You are not authorized to access this API Error 403 PUT I am getting this response when i am updating non admin users signature in gmail using email settings api. The following code is working ...
2
votes
1answer
13 views

How can I delete Account with Opportunities(Closed Won) via REST API?

As a documentation said when I delete a record all referal records will be deleted. But there are limitation about opportunities with Close Won Stage. If I change Opportunities to another Stage, ...
1
vote
1answer
21 views

Salesforce Tooling API for ValidationRule

I am trying to update ValidationRules via the tooling API via PATCH and the endpoint: /services/data/v33.0/tooling/sobjects/ValidationRule/{Id} Every time I try to update a field i get this error and ...
0
votes
1answer
29 views

Apex Callouts retrieve audio content

I am making a callout to a 3rd party to retrieve an mp3 file The endpoint is a HTTP GET (https://api.ubity.com/recording?key=HV5nPTLk98UPeTLxqwA8&callid=ABC12345) The response is the actual MP3 ...
2
votes
1answer
29 views

REST API - create a record in a custom application

I am currently testing some Salesforce functionality, we have a suite of forms on our website which when submitted will hopefully create a record in Salesforce. These records will all be created in ...
0
votes
0answers
11 views

ExactTarget REST API - using jQueryto get accessToken

I am trying to get an access token using jQuery. I get a cross origin error but the network transaction is 200 OK. I know this question has been asked before but I cannot comment on it as I am new to ...
2
votes
1answer
24 views

What's the best practice for providing this functionality?

I have a web app that I want to allow users to create cases in Salesforce with. Currently I have a developer instance where I call the REST api to create a case. However, I want other people to be ...
2
votes
0answers
21 views

Invalid token after OAuth on app in production, but not in development?

I'm having an issue where when I use an app in my developer's instance everything works fine. But when we create an exact duplicate of the app in our real production instance, the token's we are ...
2
votes
1answer
21 views

using VF input fields to set request body for Rest API call

I'm trying to send data from one SFDC org to another org via Rest API. I'm properly able to create Rest Resource in 'receiving org' in this way : @httpPost global static string DepositAmount(string ...
2
votes
1answer
27 views

Purpose & Meaning of 'replicateable' field

I'm looking at the getUpdated() and getDeleted() calls in the SOAP and REST APIs, and I see that they are only supported by SObjects that are flagged as 'replicateable'. I haven't found any docs ...
5
votes
1answer
146 views

Does Batching REST API calls save on API Limits?

If I access SObject records via batching as defined here, does that count as 1 call for the purposes of daily API limits, or does each subrequest within the batch count as 1?
0
votes
0answers
17 views

update email address with patch/Contacts REST API

I'm trying to update a user's email address with the REST API using PATCH/Contacts: https://code.exacttarget.com/apis-sdks/rest-api/v1/contacts/updateContacts.html I request an authentication token ...
0
votes
2answers
29 views

How to use salesforce reserved keywords in json deserialization in apex rest services [duplicate]

I'm new to apex rest services.Normally in Apex rest services the input json body automatically deserializes to apex class object. but my json body contains reserved key words.For Rest services ...
2
votes
1answer
30 views

REST API: “INVALID_SESSION_ID” with valid token

I'm having some trouble accessing API endpoints using a valid token that I just got from the OAuth process. I'm passing data as I think I should and am trying to access any endpoint at this point ...
1
vote
2answers
49 views

Fetching picklist values based on record type

Is there any way to fetch picklist values based on a record type. I am wondering how salesforce does it. I am fetching list of record types via ForceTK, next i want to fetch picklist values based on a ...
1
vote
1answer
16 views

Salesforce API Connection to Sandbox

I have a contractor attempting to connect to my Sandbox. He is asking for the following information to establish connection. Can someone help me with the information below? Thanks, Client Key - ...
0
votes
0answers
17 views

Create social contacts under Lead for our user if not exist [duplicate]

I am a new Salesforce developer. Forgive me if this question is not clear. I am calling REST API to post lead. My app has passed the security review and whitelisted by Salesforce. But I found out ...
1
vote
1answer
20 views

REST api Post lead got invalid field when post to group edition

I am calling REST api to post lead. It works fine for Developer edition. My app has passed the security review and whitelisted by Salesforce. But when I tried to post to Group edition. I got his ...
2
votes
1answer
25 views

Uploading attachments using ForceTk

Please suggest me how to put attachments for a record under notes and attachments using forceTk, currently i'm using the following code and it creates attachments, but i'm not sure how to link these ...
0
votes
0answers
12 views

Setting value for 'ProductGroup' on Unleashed api from salesforce

I am working on integrating salesforce with unleashed api. There is a custom object 'Item' and custom fields 'Item code', 'Item Name' and 'Item family'. On insert of Item record i need to create a ...
1
vote
2answers
23 views

how to pass operators dynamically to if condition

I am trying to implement multiple filters on visual force page to generate custom reports by using external system data from rest call.I am not going to store anything in salesforce objects.So i ...
1
vote
0answers
13 views

Converting a string to variable of a wrapper class on runtime for achieving multiple search criteria like in reports

My target is to place a multiple filters on Visual force page to filter data just like in reports.This data is coming from external system on a rest call.I was storing this data in a list of wrapper ...
0
votes
1answer
42 views

Calling salesforce REST API from sharepoint

I have a sharepoint app in which I call salesforce REST API. I have obtained access_token successfully from the app, (using username-password flow) but when I try to access some resources such as ...
0
votes
0answers
25 views

How to link Campaigns and SMS mobile messages via the API

We are pulling data from SFMC (SOAP and REST) API to provide advanced reports, stats and metrics. Every SMS is sent from the SFMC Mobile Connect portal (no triggered sends via sms api) and is ...
0
votes
1answer
37 views

how to implement search on list of wrapper class

I have a design problem in implementing search functionality for custom report developing on visual force page i was getting data through rest api in apex from external system and converting it to ...
0
votes
3answers
59 views

SOLVED - REST API composite batch fails - INVALID_BATCH_SIZE

I'm trying to use the new batch REST calls as documented here https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_batch.htm#topic-title But I get the following; ...
0
votes
1answer
29 views

How to post some inbound message to salesforce with username and password?

I want to post some inbound request to salesforce by using salesforce credentials. Can anyone suggest me the best and secure way to make this communication happen between external system and ...
0
votes
3answers
43 views

Test class for @future class

Hi I have the below trigger and future pls help me on how to write Test class for this:- trigger Contactcallout on Contact (after update) { Map<Id, String> m = new Map<Id, ...
1
vote
1answer
39 views

400 Bad Request Posting Chatter Message

I'm trying to reply to a private conversation in Chatter via the REST API, by making a POST request to https://<<instance>>/services/data/v33.0/chatter/users/me/messages using jQuery's ...
2
votes
2answers
37 views

API Usage limits

I was trying to find limits of Rest API calls an org can made in a day. This article 'API Usage Limits' helped me until a particular line confused me which says Any action that sends a call to ...
3
votes
2answers
282 views

Avoiding exposing sensitive information in class

I've to call a rest API(Class exposed as rest resource in the same org) from Batch class. For that I've get session Id for authenticaiton I'm using SOAP API Login method to get Session ID which In ...
1
vote
0answers
33 views

case assignment rule is getting fired when case comment is added from API

We have setup assignment rules and also setup default case owner from support settings. We are adding case comments through REST API call from external system and whenever case comment is added, it is ...
1
vote
2answers
25 views

Escaping + in Salesforce REST QUERY

I'm trying to escape test+test@test.com email in salesforce REST query. https://na16.salesforce.com/services/data/v32.0/query/?q=SELECT+Id+FROM+Contact+WHERE+Email='test+test@test.com' But it ...
1
vote
1answer
52 views

Sending a rest callout using JSONGenerator?

I am triying to send a callout using JSONGenerator in salesforce but I am having difficuty in putting the things through using .write methods. Any help will be great. { "request" : { ...
1
vote
1answer
34 views

How to issue/send access token from apex page to connected app

We have implemented 2 OAuth flows between our app and SF where SF is auth provider - Web Server and Username and Password Now we have use case where user is signed on SF and has to invoke our ASMX ...
3
votes
1answer
120 views

Parse JSON Response and add to Visualforce Page

I have this JSON Response, and I'm having trouble trying to figure out both the JSON.deserializeUntyped and JSON Parser. My ultimate goal is that I need to parse the JSON, then take each value and ...
2
votes
1answer
76 views

How to limit an access to specific REST endpoint?

Let's assume I have an REST ednpoint created: @RestResource(urlMapping='/CUSTOM_DATA/*') global with sharing class MY_CUSTOM_DATA Now I am going to create Connected App with Full Access scope, I ...
1
vote
1answer
46 views

Failing to access sales force through REST API

I have issue with SalesForce Rest API. I've created developer account and created service application which called SalesForce through Rest API and it worked, but as I changed to production SalesForce ...
2
votes
1answer
26 views

How to get a standard object by standard field with rest api?

I am new to salesforce development. I wonder what is the correct rest api if I want to get a standard object by using a field instead of id? For example, if I want to get a contact record by id, I try ...
0
votes
1answer
17 views

Retrieve SentEvent Details by RequestID via Rest or FuelSDK

Attempting to filter by requestID using FuelSDK in Ruby. Receive the following error: :overall_status=>"Error: The Filter Property 'RequestID' is not a retrievable property." I believe ...
0
votes
0answers
15 views

Feedback about company

Is there any way so that we can send our feedback to the company using Salesforce? Like,if any user enters feedback in our form,It should be sent to salesforce user.Is that possible using salesforce?
0
votes
1answer
30 views

Sending email through REST API gives 401 unauthorized access error

I am posting the request to send the email but get 401 unauthorized access. This is with a fresh token so token is not timed out I know. Below is the request that I am using. I do not have any issues ...
0
votes
1answer
29 views

SalesForce SOA Integration : Best practise to handle values to null

My SFDC org has been integrated with MDM via Oracle SOA. Lately we are seeing issues where data going from value to nulls. When MDM does not have a value in a field then they are not publishing XML ...
2
votes
1answer
25 views

is there a way to be notified or poll for Salesforce API sobject changes?

We've been using v33.0 to download all the data from our Salesforce account. Today, we found out that one of the SObject got deprecated in v34.0 because the API threw HTTP 400 error and we wasted some ...
0
votes
1answer
32 views

Which one is most secure REST or SOAP?

Hi I am new for integration. Please can any one suggest me which is most secure REST or SOAP. Thanks in advance!
1
vote
1answer
16 views

Check if fields editable in RestAPI

I've seen one similar question, but it didn't help me to find required solution.The thing is - I acquired all field of Leads object through RestAPI, but I need to check if those fields are available ...
0
votes
1answer
27 views

MobileConnect Outbound SMS API not respecting STOP

I've submitted a STOP response to a shared short code using my mobile number. I then attempted to send an Outbound SMS via MobileConnect (to my number and to a colleague). My colleague received the ...
1
vote
0answers
33 views

How do you construct a REST API URI with multiple primary keys?

The documentation for upserting data extension rows by key uses this as an example URI: https://www.exacttargetapis.com/hub/v1/dataevents/key:SomeKey/rows/Email:someone@exacttarget.com. Let's say ...
0
votes
0answers
93 views

403 Forbidden error on AWS S3 Rest API PUT request - Signature Version 4

I am trying do do a PUT Object request to the S3 REST API but I keep getting a 403 Forbidden error. Below is the code where I am setting the signature for AWS: //Task 1 String ...