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

9
votes
2answers
2k views

How do I use the Tooling API to create a new Apex Trigger?

How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)? According to the documentation I need to specify the ContentEntityId as an existing Trigger Id. But in ...
23
votes
5answers
436 views

What are all of the reasons why Salesforce customers should upgrade the API version on their Apex classes, triggers, and pages?

I haven't been able to find any official documentation or community discussion of the compelling reasons to upgrade the API version on Apex classes, triggers, and pages. I know there is the general ...
6
votes
5answers
2k views

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

I have seen information about using Token with SOAP API, but REST API documentations doesn't say anything about it. Did anybody find useful hints on getting Token to work with Rest API?
4
votes
1answer
1k views

Salesforce api v28 not rendering CSS styling when rendering as PDF

I'm creating a Visualforce page rendered as a pdf ( renderAs="pdf" ), and the page won't render any of my CSS styling. I am wrapping my <style> with <head> as shown below. <apex:page ...
9
votes
1answer
686 views

Find Nearby Accounts migration to Google Maps API v3

we have been using the Find Nearby Accounts app from appexchange for a while now. The app uses the Google Maps API vs 2 which is now deprecated and hence has rendered the app ineffective. I have tried ...
5
votes
1answer
1k views

Error using Session Id auth with cURL following REST documentation

Problem: trying to authenticate to a dev org using Session Id authentication and cURL fails when following the REST API Dev doc. The example in the doc provides the following, which fails (Quick Start ...
10
votes
2answers
5k views

How to access profile permissions via API

If I know the name of a certain profile, I would like to obtain CRUD permission settings for each object in the profile using Apex. I see that there is an sObject called Profile, but this only ...
13
votes
5answers
504 views

How to roll your own authentication for an external Salesforce App?

Background If you're building an app, that involves Doing some very basic actions on behalf of non-Salesforce users, i.e. creating a Quote Is hosted externally (in other words, not APEX, but ...
5
votes
1answer
182 views

Using Canvas client-side proxy to access Apex REST API from Visualforce page

Is it possible to use the client-side proxy provided by the Canvas SDK from a canvas app embedded within a Visualforce page to access an Apex REST endpoint? We have a canvas app which calls an Apex ...
4
votes
1answer
678 views

Why does OAuth2 authorization endpoint redirect to callback URL as if it were the SAML IdP?

This is all a proof-of-concept in a sandbox; maybe something I'm doing is not supported in sandboxes. Our org is set up with SAML2-based SSO and that works well. Now I'm trying to use a REST API and ...
10
votes
3answers
266 views

Know if is a custom profile via API

Is it possible to know if a profile is custom via API? Like an attribute "profile.isCustom".
7
votes
3answers
415 views

Where did the line numbers go (browser editor)?

Using Google Chrome to edit Apex code / VF Pages in the Browser directly from test.salesforce.com. This has worked well for me (way better than the Developer Console or Eclipse - my programs are ...
6
votes
2answers
2k views

Access reports though api

I'm looking for examples of how to query the salesforce rest api, to get the values from these reports. Reading this site, gives an example, but not much explanation. curl ...
5
votes
2answers
2k views

Salesforce: Any API for getting user information?

I am trying to find a way to get the information about the salesforce enterprise user from his auth_token. I want to find the username, email address and role(admin/user) from the auth-token. ...
2
votes
2answers
965 views

Emulate a custom object's “Recent Items” in a Visualforce page

How can I get a specific object's ‘Recent Items’ object Ids in Apex or SOQL? Please note. I am not talking about the recent Items displayed on the homepage showing object types. I couldn't find a way ...
1
vote
3answers
2k views

Is there a way to access SFDC API log?

I'm looking for a way to monitor API calls. Specifically when an API update came through. We have a hosting service that sends trial user info to the SFDC lead object through the SFDC API. There ...
8
votes
2answers
690 views

How to pass a variable to the SOQL where clause?

I am using Salesforce API with C#. In the query that I am writing I am not sure how to pass a parameter to the select statement. My query works when it looks like this: SOQL = "select AuthorId,Name, ...
7
votes
1answer
267 views

Bulk API Query - Splitting large query into batches

I'm currently using the bulk-api to return all records for a given sObject. I can make it work via one very large batch, but I think it would be more efficient if I could split it into multiple ...
5
votes
2answers
407 views

ExactTarget SOAP Request returns Fault in Response

This question is regarding using the ExactTarget SOAP API. I am trying to use the SOAP envelope sample given in ...
5
votes
1answer
112 views

Expose features of portal application via api?

We have built a complex application and expose it using the high volume portal licenses. The users of this app have restricted access to our salesforce data, this is controlled by the application. We ...
5
votes
1answer
3k views

Is there a way to Query Role Hierarchy?

Using the Web-Services SOAP API, I'd like to query for all UserRoles under the same Parent Role. The only way I can think of doing this is by querying all Roles, then putting together a tree using ...
3
votes
1answer
306 views

User's Dashboard assignment via API or SOQL?

Is there a way to access, query, or update the following User preferences via the API or SOQL? The Dashboard assigned to the User's homepage I've looked for any reference to these in the Force.com ...
2
votes
1answer
32 views

Populating Client ID for API Call reporting purposes

This is loosely in reference to another Question: Client Id blank in "API Calls Made Within Last 7 Days"-Report I'd like to find out, so that our Developers can implement it, where ...
2
votes
1answer
105 views

Email Send Definition using Data filtered Data Extension

I try to set an Email Send Definition with a Data Extension which is filterd by a Data Filter (exclusionlist). Sending without the Data Filter is no problem but after applying the Data Filter it ...
2
votes
1answer
309 views

Get all page-layouts for an object via API

I am attempting to get all page-layouts (w/ details) for a given object via the API. Currently using describeLayout which gives me the details I would need about a layout, the problem with this is ...
2
votes
2answers
1k views

Why is my WebToLead form not submitting?

I get this result: Salesforce.com Lead Capture Interface Reason: Your Lead could not be processed. null Lead Capture Page: Not available. Record Information: debug = 1 encoding = UTF-8 ...
1
vote
0answers
44 views

Triggered Send - High response times [closed]

Our triggered sends have a history of taking a long time to get a response (30 secs or more) from ExactTarget for each call. In the past two weeks, the situation has gotten worse and the calls have ...
1
vote
0answers
69 views

How can i refresh Token using fuelsdk for php?

Here is the error messsage status: code: 500 message: q0:FailedAuthentication The security token could not be authenticated or authorized ---> A critical error has occurred and has caused ...
1
vote
2answers
272 views

How can I find my salesforce.com API request limit?

Can you tell what your API limit is for a 24 hour period? It appears that salesforce has Unlimited, Developer, Gold plans. How can I tell which one I have? I'm looking to retrieve it though the ...
0
votes
1answer
88 views

How to use 31.0 Api Version

i have a developer org in which i can set highest version upto 30.0 .but there is a lot of upgrades in 31.0 metadata api.How can i use 31.0 api version in my apex class and pages.
0
votes
2answers
167 views

API Calls - What Script/ Page/ Etc Made The Call?

Currently, our Web Development team is trying to mop up years of scattered coding techniques (PHP based sites), and in recent weeks, something disturbing has happened. Our API calls to Salesforce ...