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

please modify my code-REST API [on hold]

how to call outside data in this controller?.please find the screenshot,can you please help me[https://lightningconect.ap2.visual.force.com/apex/UIviewPage][1] the screenshot display the only ...
1
vote
1answer
16 views

CreatedBy field inaccessible by partner portal user

I have an app that accesses the API. Both regular users and partner portal users can login to the app. I am doing a query through the API on a custom object but the CreatedBy field returns null when ...
1
vote
1answer
7 views

Trying to dev a Web2Activity - Need direction

I am a web dev with novice experience implementing API integrations. I have a php based website that currently has multiple web2lead forms spread across the site. There are few instances where I ...
1
vote
1answer
16 views

Rest API report type object relation

I tried to retrieve report type object relation from rest api. I have checked almost all documentations about this but could find anything about it. Could you please help me if you know a way to get ...
0
votes
0answers
16 views

REST API get CurrencyIsoCode of single Currency org

So with a multi currency, my understanding is I could check the CurrencyIsoCode of the record. For single currency, it's all a corporate default, right? But the identity, user, and organization ...
0
votes
1answer
26 views

How to assign a valid RecordType on Lead creation

I have a service that's creating Leads on a user's behalf using the Salesforce REST API calls. I have a new user whose account is having trouble because I guess I need to set a RecordType on Lead ...
0
votes
0answers
16 views

REST API for sending triggered email to a subscriber list, or get subscribers in a list?

Is there a way using the Exact Target REST API's to send a triggered email to a list of subscribers (i.e. a distribution list)? We need to regularly send emails to a distribution (i.e. for monthly ...
2
votes
0answers
12 views

ExecuteRestApi doubling up SalesForce.com in called address

Afternoon everyone, I'm having an issue when using the ForceClient ExecuteRestApi method. When using it, instead of going to this address: ...
1
vote
0answers
31 views

Rest API - Duplicate products and partners are added to opportunities

I'm trying to add 2 products and 2 partners to an existing opportunity through REST API. Even though both products and partners are different, they have the same name and product code in SFDC. ...
3
votes
0answers
34 views

Connected App issue with Rest API

I was trying to connect one Salesforce Org to another via Rest API. From the knowledge I've, I was thinking I've to create 'Connected APP' in the target(receiving org)where I've to update some data ...
8
votes
1answer
49 views

UserType - REST vs SOAP

I am noticing a difference in the "User Type" field returned from the REST UserInfo Endpoint (link) vs the SOAP getUserInfo() method (link) as follows: SOAP Standard PowerPartner REST STANDARD ...
2
votes
1answer
53 views

Difference between ApexTrigger and ApexTriggerMember

I am trying to understand how to manipulate triggers via the Rest API (turn them on and off). What is the difference between the "ApexTrigger" and "ApexTriggerMember" object? Does any one have any ...
1
vote
1answer
43 views

Cross reference works for ID but not for External Id

I am facing INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY while creating CaseComment object with external id CaseNumber for Case parent object. I am using the profile with "Partner Community" user ...
0
votes
1answer
44 views

How to get session id dynamically in salesforce rest api

I am trying to connect one sf org to anaother. I am using the below class to initiate the call from command button. I copied session id of target org and hard coded here in the class which then ...
2
votes
1answer
53 views

Securing a REST API

Once the Connected App is created, how is access granted to various endpoints exposed as REST Services via Apex REST? For example, if we have a Class called CreateCustomer, and it is decorated like ...
0
votes
0answers
24 views

REST API - Get All Categories for articles

I am trying to display all the categories to access all the articles in a FE. Scenario Category Group: Categories ParentCateg Son 1 Son 2 My idea is to get first all the categories and then, ...
0
votes
1answer
36 views

Help required ..Invalid session id in salesforce rest api

I am getting Invalid session id when i am executing the below code. Please let me know where i am doing wrong. public class ResttestController { public String response{get;set;} public ...
1
vote
1answer
23 views

How do I create a listener within my org to let others POST to it and save data?

What should I look into to create a service within my org to let others POST to my org and save data? For example, I have a list within my org and want to POST to it from outside salesforce (let's say ...
2
votes
2answers
44 views

Tooling API execute anonymous results

I am trying to run an execute anonymous statement using tooling API. I am running a very simple System.debug('test'); Now the issue is as this is a GET request, the response that I get is like ...
-2
votes
1answer
21 views

Tooling API giving error of resource not found

I am trying to do a simple code with Tooling API, where I am trying to execute anonymous one statement with tooling API. Sample request - HttpRequest req = new HttpRequest(); ...
3
votes
1answer
43 views

How to verify whether a particular API has been enabled for an user/org?

We have an app which will use Salesforce API call's to do some functions using salesforce data. User will login into salesforce using OAuth and we have corresponding connected apps created in ...
0
votes
2answers
37 views

REST api not working through Firefox add-ons: HttpRequester/Poster

ok, this is bizarre, but I cannot for the life of me get the REST api to work through a tool like Firefox's Http Requester. I am just doing a basic get call to: ...
3
votes
1answer
12 views

What time formatting is used within the blackout window for the REST interface /messageContact/{id}/send?

the example given in the documentation looks like this: "BlackoutWindow": { "UtcOffset": "-0500", "WindowStart": "1500", "WindowEnd": "2200" }, Is this saying not to send a message ...
1
vote
1answer
77 views

Unable to resolve below error while creating a payment from salesforce to paypal using rest api

I am getting below error when i am trying to create a payment in paypal from salesforce using REST API. System.HttpResponse[Status=Internal Server Error, StatusCode=500] <ns1:XMLFault ...
0
votes
1answer
12 views

Using the Tooling API to query a workflowalert with a fullname more than 80 characters fails with UNKNOWN_EXCEPTION

Summary Using the Tooling API to query a workflowalert with a fullname more than 80 characters will result in an error similar to the following: ERROR:- UNKNOWN_EXCEPTION: An unexpected error ...
5
votes
2answers
36 views

How to exclude object attributes from REST API response?

My app performs the following SOQL query over REST API: SELECT Id FROM Opportunity WHERE IsClosed=True Instead of just returning the Id for each opportunity, the result is: { ...
2
votes
1answer
19 views

MobileSDK Native iOS - Check if user is admin or not

I'm working on a native iOS app using the MobileSDK. My app defers the login, that is, it does not occur right at the beginning of the app. From the home screen, users can tap either an "Employee" or ...
0
votes
1answer
65 views

Salesforce to Salesforce integration using XML ,soap and HTTP request?

I am new for integration.Here i want to create one visual force page with username and password fields in one developer edition.So that if i give login id and password of another developer edition,we ...
1
vote
0answers
16 views

Is it ok to store salesforce leads after user gives OAuth access

In my web application, I am asking user to gives permission for reading salesforce data. The scopes requested are following - api id refresh_token With this scope, salesforce permission prompt ...
4
votes
2answers
116 views

How to convert below cURL into Http request type

I have below cURL: curl https://api.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "<Client-Id>:<Secret>" \ -d ...
2
votes
1answer
25 views

API Connection To Sandbox URL

I have a vendor that is trying to establish an API connection to our sandbox. Is this the correct URL for sandbox? https://test.salesforce.com/services/oauth2/token Thanks
1
vote
2answers
44 views

I am calling a web service while clicking on a link , but I am getting status code 401 error. Please let me know the fault

Global class TestCmis{ Webservice static void getCmis( Id LeadId){ system.debug('HAnana---->'); HttpRequest req = new HttpRequest(); ...
1
vote
2answers
26 views

Search through files with Chatter API

I have been reading up on the Chatter API. I am trying to use the Chatter API to search through a users Chatter items: Feed, People, Groups, Files. After OAuth authentication, I can successfully do a ...
3
votes
1answer
61 views

Bulk API Session ID

I have a trigger on a custom object which on certain conditions call a future method. The future method calls a Salesforce REST function. This rest function calls a PDF VF page, stores the body as an ...
1
vote
0answers
125 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
16 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
29 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
42 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
35 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
17 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
27 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
33 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
36 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
30 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
159 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
30 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
36 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
44 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
76 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
19 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 - ...