An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other.

learn more… | top users | synonyms

3
votes
1answer
27 views

Load IP Whitelist into Salesforce via API

I have a list of around 412 whitelist records to load into the Network Access section of Security Controls in my org. With so many IP addresses to load, is there any way to load this programmatically ...
1
vote
1answer
39 views

Tabular report data via analytics API

I was wondering if I could run my tabular report via API and create a csv file by traversing the result. I had a look at the examples and wrote a piece of code but.... Unfortunately I have no idea how ...
1
vote
2answers
29 views

Error [System.HttpResponse[Status=Unauthorized, StatusCode=401]] when updating currency table

Code: global class CurrencyExchangeRateScheduler implements Schedulable { public String sessionId; public CurrencyExchangeRateScheduler() { String username = 'username'; ...
0
votes
0answers
13 views

Accept header in request(Firefox)

I have some strange issue. I do GET request using Salesforce API like this: var xmlHttp = new XMLHttpRequest(); xmlHttp.onload = function () { } ; xmlHttp.open("GET", ...
0
votes
0answers
29 views

how to know if an enterprise connection is alive

I want to know if a connection is valid, this is an example of what I'm trying to do: EnterpriseConnection connection = new MyEnterpriseConnection(); System.out.println("first " + ...
4
votes
2answers
126 views

Meaning of 'Salesforce API Access Change for Connected Apps' Salesforce Notice

Subject: Salesforce API Access Change for Connected Apps You are receiving this communication because we have identified you as a system administrator of an organization with users that ...
2
votes
2answers
26 views

How can I set an SObject field to null using Java API?

I have a third party service which updates custom object values in my service on Force.com platform using Java API and OAUTH2. From some reason when I try to update the SObject field value to null, ...
0
votes
2answers
35 views

Transferring csv file from FTP to Salesforce.?

Can someone help me in this and ways to do it and some sample code that is helpful for me.? I have no idea how to start this. Thanks
0
votes
0answers
27 views

How to update a org by another salesforce org?

I have 2 org org A and org B. Here I have to update the a different org B from org A. I am using streaming API to identify that the record is created, updated or deleted on org A. This much I have ...
1
vote
1answer
7 views

Find Users OAuth connected Apps via API or tables

I need to be able to find out what external apps users have installed through the API or a table. In their User record there you can view a related list of records and Revoke them from there. How ...
3
votes
1answer
29 views

How can I use the API to get a list of reports in the Unfiled Public Report folder?

Short story: What is the best way to query for a list of reports in the 'Unfiled Public Report' folder. Long story: When I want to get a list of reports from a specific folder in apex I make a SOQL ...
0
votes
1answer
23 views

Limitations in functionality of SOAP/REST/etc. API as opposed to a Force.com app?

I'm still a Salesforce newbie, so I hope you won't mind my "immature" vocabulary.;) I'm about to build an application which should be integrated with Salesforce. Currently I have two options in front ...
0
votes
0answers
6 views

Query Queue Manager Information

We are attempting to develop notification strategies for systems outside of Salesforce. However, we want to notify the current Queue Manager in Sales Force. I can build a report which lists the ...
0
votes
1answer
24 views

Partner users API access

I am developing a Phonegap app for Partner users. It needs to be on javascript so I tried ForceTK with no luck. Is this possible?
0
votes
0answers
18 views

Issue with the api name of the field from report

I may VF page I am getting all the reports and from that reports I am getting the filters used for the reports. When I try to use the phone field it retrieve me name as phone1 and when I used First ...
1
vote
1answer
67 views

How to create a file inside a folder in google drive?

I am able to create a file in Google drive from salesforce with the below code: Http http = new Http(); HttpRequest req = new HttpRequest(); req.setMethod('POST'); ...
0
votes
1answer
25 views

Retrieving custom fields via QueryResult

I'm new to using SOQL and QueryResult. I'm using C# and the sample code from here: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_walk_through_code.htm I'm trying ...
1
vote
0answers
28 views

Console Integration Toolkit addEventListener not receiving events in iFramed Visual Force Page

I have the following setup (showing a simplified version here): A CTI adapter page (hosted externally under www.example.com or localhost) uses the Console Integration Toolkit to fire an event using ...
0
votes
0answers
12 views

We are having an Integrated process where we use Salesforce API merge operation

This Process will send requests to Salesforce for merging the records using API calls. When tested in a test environment we were getting the result as expected, records which a sent in request are ...
2
votes
0answers
61 views

Download a report using python

I have a report that I want to download in a CSV format using a pyhton script. I searched the web for solutions, but none of them worked. This one looked very promising and simple, but unfortunately ...
3
votes
1answer
62 views

Does sforce.console.onFocusedPrimaryTab work? Does it work inside a publisher action?

The Salesforce Console Integration Tookit provides two functions for detecting switching focus of console tabs: onFocusedPrimaryTab ...
3
votes
2answers
75 views

What is the maximum number of records I can send per RESTful API call?

There is a maximum batch size for the number of records returned by an API call. Most of the documentation for the API calls reference including a .json file, and some, like the Update a Record ...
2
votes
0answers
38 views

Create Master and detail records in single insert without external ID

I can't seem to find a direct answer for this... I am hoping to create a master record and one or more detail records in a single API call. Most resources have suggested the use of an external ID, but ...
5
votes
1answer
97 views

Force.com Toolkit for PHP - Still Officially Supported?

Looking at the current websites here: https://developer.salesforce.com/page/PHP_Toolkit https://github.com/developerforce/Force.com-Toolkit-for-PHP I wonder if the toolkit is still supported? ...
2
votes
1answer
27 views

SF Group Edition - API limits?

I am developing a SF AppExchange application that works with Group Edition licenses. It seems that access to the API is allowed in Group Edition orgs as part of a managed package, so our application ...
1
vote
0answers
21 views

How to download the file in html format from Box api?

How to download uploaded file in box.com? In the above link the code will give an url (in the response) to download the file. But i want my file from the box to be downloaded in html format. Can ...
4
votes
0answers
28 views

Filter empty date field in SF analytics api

Using the analytics rest api we need to add a filter to a date field to get only the records where this field is empty. In json: { "column": "Account.Date_Field__c", ...
1
vote
1answer
17 views

How can I enable permissions on the partner object for the api user?

I'm attempting to do a create on a partner object via the api but am running across the following error - 'INVALID_TYPE: sObject type 'Partner' is not supported.'. It would appear that the API user ...
1
vote
0answers
31 views

Apex Callout to LinkedIn 'Liking a Company Share' API

I'm unable to like a linkedin company update post through the linkedin like API i.e. https://developer.linkedin.com/documents/commenting-and-liking-company-share Please find my code below which i'm ...
1
vote
1answer
39 views

How i Can return Object type in Rest Response?

i am facing this problem too.i have create a rest service that will check the lead and contact in salesforce if lead or contact is exists then send rest response along with object type.Please suggest ...
0
votes
1answer
28 views

Error within Replication API

In an effort to try to copy the Opportunity object data from our customer using the Replication API, we received an API error and were forced to use the SOQL based non-replicated API which performs ...
1
vote
2answers
40 views

Force.com public API Governor limit error codes

I am developing a public Force.com API (published using Force.com site) using Apex REST services. I am planning to list all possible errors (especially governor limit errors) that can be returned when ...
4
votes
1answer
55 views

Find nearest branch from ZIP code entered by customer

We need to calculate the distance between the ZIP code entered by customer and the nearest branch (Branch is an object) to that ZIP code address. The Lat and Long values are calculated for both ZIP ...
0
votes
1answer
50 views

Getting access token for Google adwords

I am using the following code to get acces token from Google Adwords but it is showing error 400 with grant_type:invalid code:invalid Though my auth code should be correct. Can anybody tell me ...
1
vote
0answers
41 views

Error in API not reproducable via UI

While updating Opportunity Owners in our Org through Data Loader, we received a validation rule error from a lookup filter. However, when we tried to perform the same update via UI (Change Owner) it ...
1
vote
2answers
47 views

How do I access the newly created attribute from triggered send?

If I create a subscriber like the one below, and use it in a triggered send, how do I access the new attribute? Subscriber subscriber = new Subscriber(); subscriber.Attributes = new ...
1
vote
2answers
34 views

How do I use the SOQL IN keyword in the API? (C#)

I'm building something in which I get a list of parent objects, then would like to get a list of child objects whose parent account ID appears in the first list. Normally I would do something like: ...
1
vote
1answer
25 views

Duplicate :[Is there any documentation about using Client ID / Token with REST API to access Group and Professional Editions?]

I know my question is similar to other topic as mentioned in title but there are few points that I would like to clarify: My Scenario: I have created an APP and it uses REST API functionality. ...
2
votes
1answer
44 views

Is there REST API to trigger a file transfer/import job/program?

Is there any way I can avoid having to travel back in time to use SOAP and instead use the REST api to: 1) Trigger a file transfer 2) Trigger an import job 3) or Trigger a program ? I believe the ...
2
votes
1answer
37 views

Clearing Data from a Data Extension through API call

I am trying to clear a data extension via API call. I have ExactTarget web service reference into my project as https://webservice.exacttarget.com/Service.asmx I have found a sample code to clear a ...
2
votes
1answer
51 views

How to increase Session timeout to more than 12 hours?

Currently the Session setting is having the maximum time out value as 12 hrs. Is there any way to remove this session time out constraint? Can we make this feature disable by raising a ticket with ...
0
votes
0answers
24 views

Using ListView object to retrieve leads and contacts using API

I am (attempting) to use the Salesforce SOAP API to retrieve leads and contacts from a user's view. Thus far I've managed to pull the view's definition as a ListView custom object: <?xml ...
1
vote
1answer
34 views

Error in ExactTarget API when adding subscriber with mismatched SubscriberId & Email

I have created an API call for triggering a TriggeredSend in my account. The account has the triggered send in Running status. The trigger is working when I make my API call. The problem is not that ...
4
votes
1answer
86 views

Issues with connected App - {“error_description”:“authentication failure”,“error”:“invalid_grant”}

I've successfully implemented the oAuth2 authentication process using the Web Server Flow of the REST API between my application and Salesforce, and it's working great when connecting with a Developer ...
1
vote
2answers
32 views

Is there any way to get the latest created Package version from a packing org?

I have a packaging org, where I am creating managed package. I would like to use an API to get the version number of the last created package. Is there any mechanism to achieve this?
2
votes
1answer
27 views

How many API calls is a single select statement?

I'm using a 3rd party tool to execute a SQL select statement on one object. Is that the equivalent of using only 1 API call, or is it more?
0
votes
0answers
78 views

How to Access contacts of Salesforce account from External Modules/Portals using OAuth

I am creating an application in angularjs. and I want to import contact of salesforce account in my application. I have already got response of access_token and I am passing given below url. ...
1
vote
0answers
24 views

Reference date /time when Sandbox is refreshed through API

Is it possible to reference the date and time that a Sandbox is created /refreshed through the API?
1
vote
1answer
23 views

In code, data loader or API can I control the social image on a contact?

When social accounts and contacts are enabled you get an image at the top of the Contact or Account with links to a host of social media. It looks something like this; This image also controls the ...
1
vote
1answer
22 views

How to detect changes in formula field value via API?

I've been stumped on this issue for a while now. I have a system which polls Salesforce for updates to records, based on LastModified timestamp (or getUpdated()). Updated records get synched down to ...