An application programming interface (API) is a specification intended to be used as an interface by software components to communicate with each other.
2
votes
1answer
26 views
Requests from One PHP form to two Salesforce orgs
We need to create a PHP form that will simultaneously send data to two Salesforce orgs, and update Accounts, Contacts, and some custom objects. Is it possible? What will be the best approach to ...
0
votes
1answer
23 views
Difference between AccountId and WhatId in a Salesforce Task
Specifically regarding Email objects in Salesforce's REST API, i get redundant AccountIds on fields- AccountId and WhatId. Seems like both of these are Accounts related to the Task.
My query to fetch ...
1
vote
1answer
37 views
How do I setup an access_token ?
I have a python script on a local server that needs to be given OAuth permissions to salesforce.com
According to salesforce's documentation, I need to create a new token.
Develop -> Remote ...
1
vote
2answers
35 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 ...
1
vote
0answers
38 views
Is salesforce REST API support disabled in Enterprise Edition
i understand that API support is specially activated for Partner DE applications, so as to also include PE. Even the Salesforce trial EE account, the API call returns a-
Error: call to URL ...
0
votes
0answers
122 views
DescribeSObjectResult.Fields contains fields that do not appear to exist?
I am using the force.com SOAP API (Partner WSDL) to query one of our Salesforce orgs and retrieve a list of all objects and all fields of each object.
This seemed pretty simple as I could quite ...
1
vote
1answer
38 views
Does salesforce now require a security token even if if you have whitelisted ip?
It used to be that you could ditch the security token in API calls if you whitelisted an IP range for a user's profile. I've got a new dev org (wouldn't be doing this for production orgs) and I still ...
2
votes
2answers
29 views
Accessing a Salesforce sandbox through API
can someone with salesforce API integration help me understand the requirements to access a client's Sandbox? I need to access the sandbox and pull data into our MySQL server.
I hired a programmer ...
5
votes
1answer
121 views
SalesForce Batch Compression Unexpected Error
In SalesForce' Bulk API, on page 60 of their documentation:
Compression
The only valid compression value is gzip. Compression is optional, but strongly recommended. Note that compression
...
1
vote
1answer
56 views
How to perform upsert in SalesForce Bulk API in C#
I have created a class with which I can insert, update and delete records from SalesForce using their bulk API. I have searched the web and have come across various resources; but I cannot seem to ...
3
votes
1answer
64 views
Ajax Toolkit, asynchronous javascript return values to a global variable
I am creating this Visual force page that will heavily rely on the Ajax tool kit and trying to do it asynchronous style, because I think that is what the cool kids are doing.
Is it not possible to ...
2
votes
1answer
110 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 ...
0
votes
0answers
16 views
How to deploy workflows for all users of the enterprise with an admin account?
I am developing some workflows and layouts that I want to deploy on all the users of an enterprise through API(unmanaged). Provided that I have the System Administrator account's privileges(using ...
2
votes
1answer
32 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 ...
0
votes
1answer
27 views
Enabling API access for GE/PE Edition: How to Append Partner Token to clientId for SOAP Call Salesforce?
I have received a partner token from Salesforce which needs to be appended in SOAP header, I am using following code to authenticate a valid session, but I am not sure where I need to append partner ...
1
vote
1answer
42 views
Creating EventRelation over API
I am trying to create and EventRelation over API, but I keep getting the following error even though I see EventRelation as available sObject and "Allow Users to Relate Multiple Contacts to Tasks and ...
0
votes
1answer
31 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 ...
2
votes
1answer
66 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 ...
2
votes
1answer
57 views
Creating workflow for custom object throws namespace error
I am trying to create workflows for all the objects on an Enterprise type account(test org created via partner portal). Using the meta-data API I am fetching all the objects and there are some custom ...
1
vote
2answers
67 views
PHP Soap API returning XML string
I have successfully connected to SalesForce using the Soap API and the Force.com toolkit for php.
When returning records, however, I am getting part xml responses:
SELECT Id, Name, ...
0
votes
1answer
24 views
Add contact to Salesforce 'Contact Manager' edition via API?
I'm new to Salesforce, and working on an integration task which involves adding contacts to Salesforce from an existing system and keeping them in sync (one way; contacts updated in existing system ...
2
votes
1answer
52 views
How do I perform a query to the salesforce bulk API with the salesforce_bulk_api gem?
I'm trying to perform a bulk query to salesforce with the salesforce_bulk_api gem. I am connecting successfully and doing the query with no problems but I can't get the actual results.
This is what I ...
3
votes
1answer
63 views
New Report and Dashboard Folder Sharing Settings API Access
Is it posible to access the new sharing settings for reports and dashboards? We have lots of folders and it would be nice to be able to update them using Data Loader instead of one by one.
I'm ...
1
vote
1answer
46 views
Workflow limits in response to API calls
Are there limitations on the number of workflow rules that can be triggered simultaneously for my org?
Here's the situation. My company is running as Unlimited with between 100 - 200 users. My ...
4
votes
2answers
148 views
Access to State and Country Picklist values through Apex or API?
I recognize that State and Country Picklists are still a "Beta" feature, but does anyone know if, in Summer 13, its possible to get at the State and Country Picklist Values through either the Apex ...
1
vote
2answers
171 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 ...
3
votes
2answers
52 views
API: Retrieve Record Types for Contact
I'm trying to retrieve a list of all record types relating to the Contact object in Salesforce using the Enterprise WSDl in C#. Currently I am setting a Contact object like this:
var contact = new ...
2
votes
1answer
41 views
how to control API access to applications
I think there is no way to do this but wanted to check.
I would want to control what remote applications can access Salesforce via the API.
Right now, if you set "API Enabled" to true, you are ...
4
votes
0answers
95 views
“Required fields are missing” on non-null field
My organization uses a third-party relational replication tool to sync data between Salesforce and a SQL Server database. The replication software is written in Java and uses the Salesforce API for ...
3
votes
2answers
76 views
System/Audit fields work only partially (setting CreatedDate - works, setting LastModifiedDate - doesn't)
I am trying to create an Event in Salesforce via SOAP API. Setting System/Audit fields via API is enabled.
I see that the resulting SOAP Envelope includes correct values for CreatedById, CreatedDate, ...
5
votes
1answer
55 views
How can I specify an application name when logging in?
I was looking at the login history of my Salesforce API account and I noticed there was a column for application name. I would love to be able to specify that when performing a login so I can ...
3
votes
1answer
224 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.
...
7
votes
3answers
227 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 ...
0
votes
1answer
35 views
Query Account history using API
Is there a way to query the account history using php and the API? I have some accounts that got updated unnecessarily and I need to view the history to programmatically update them all back to their ...
2
votes
2answers
93 views
Determine sobject Type From Id Using SOAP API
I'm using C# and would like to determine the type of an sObject based on it's id.
I would like to pass an id to my app and have it return a list of accounts related to it. I need to identify the ...
2
votes
1answer
109 views
How to get Field name
I have a VF page where admin can select fields which need to be displayed. And on an another Vf page i am getting the API name of all the selected fields in 1st Vf page. This much is working fine i ...
0
votes
0answers
26 views
How to connect to SAP from Salesforce with the SAP SD wsdl [duplicate]
Having SAP SD WSDL file how can I connect to SAP from Salesforce ?
After connecting with salesforce, I only want to view the data.
1.Now i convert this WSDL file into apex classes next step what can ...
3
votes
3answers
97 views
accessing the Streaming API from a public-facing Force.com Site
I've got a telemetry application for which the Streaming API would be extremely useful. However I want the subscriptions to be publicly accessible. (So that anyone with the client can waltz up and ...
3
votes
0answers
27 views
Report CSV export from API [duplicate]
Right now we are using Beatbox for the connection between Python and Salesforce.
We were wondering if its possible to get the csv file from the report export using the following URL using Python ...
0
votes
0answers
36 views
Invalid Session ID error appearing randomly
I am using the PHP partner API for salesforce and am coming across a rather odd issue randomly. Here is the error message I am getting:
Fatal error: Uncaught SoapFault exception: ...
7
votes
3answers
112 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".
1
vote
0answers
40 views
Error [sforce-2900000]: INVALID_FIELD: Can select only RecordId, a Has*Access field, and MaxAccessLevel
Running the below query returns and error message
"Error [sforce-2900000]: INVALID_FIELD: Can select only RecordId, a Has*Access field, and MaxAccessLevel"
SELECT
RecordId,
HasReadAccess,
...
2
votes
1answer
36 views
Where is the API documentation for Apex InboundEmail?
I want to know all the API's in
Messaging.InboundEnvelope
and
Messaging.InboundEmail
I google and all I get is tutorials. I want the API's.
I want to see if I can get the sent date of the ...
0
votes
2answers
29 views
InsideSales Dialer - field security has to be bypassed?
Anyone out there using the InsideSales dialer?
I recently was advised that, after I turned OFF an option I would never want on to begin with for most of our profiles... Edit Read Only Fields... ...
8
votes
2answers
378 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 ...
5
votes
1answer
89 views
Access salesforce API version of a class in Apex
I have a few classes that need to be kept at the same Salesforce API version since they interact with Salesforce metadata that may change between API versions. Because of this I would like to be able ...
1
vote
2answers
149 views
How to Check if a File is Encrypted or not?
I have a requirement to check whether a file is encrypted (using AES) or not before uploading. If not encrypted the upload should not happen and an Error Message should be thrown. How in APEX/Java ...
2
votes
0answers
93 views
Salesforce AJAX API not allowing ContentVersion Create
I've this code to create a Content record from AJAX toolkit api:
And when I click upload of file this is the SOAP packet that gets posted and in return I get this error:
<se:Envelope ...
6
votes
2answers
120 views
Issue when creating a new Recurring Donation through Salesforce API
Recently I have hit an error as described below:
Error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Message: npe03.RecurringDonations: execution of AfterInsert caused by: System.NullPointerException: ...
6
votes
2answers
74 views
Is packageVersion an interface reference only, or also implementation?
In testing some integration hooks in our managed package, I was somewhat surprised by the behavior I saw today.
We have a managed package global class. It looks something like this:
global abstract ...