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
58 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.
...
5
votes
3answers
93 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
23 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 ...
-3
votes
0answers
28 views
how to get() data from external system [closed]
My requirement is I am trying to pull information from Salesforce to SAP (by passing the in the field "IvAcctNo" to SAP , I need to get the related record details and display it in salesforce).How to ...
2
votes
2answers
60 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
45 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
24 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
2answers
64 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
25 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
19 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
70 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
38 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
27 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
22 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
191 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
57 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
75 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 ...
1
vote
0answers
58 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
77 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
52 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 ...
4
votes
2answers
42 views
Using the API, is it possible to get the name of the user who created an activity record?
I have a SOQL query similar to the following:
SELECT Id, ContractNumber FROM Contract,
(SELECT Id, WhoId, WhatId, ActivityDate FROM ActivityHistories)
FROM Contract
Is it possible to get the name ...
0
votes
0answers
42 views
UPS Address Verification with Salesforce
By any chance, has anyone successfully implemented UPS Address Verification API? can you please share your experiences, any shortcomings, etc. Also any sample APEX code for invoking the service would ...
9
votes
1answer
121 views
SOQL query to load Task returns nothing, but I see task in UI
I am trying to load all tasks of a contact via SOQL query:
SELECT Id, Subject FROM Task WHERE WhoId = 'contactId'
This query returns only partial list of Tasks. I.e. in UI I see tasks directly ...
3
votes
3answers
72 views
Sync Quickbooks to Salesforce
Has anyone, anywhere, had any success syncing Quickbooks to Salesforce?
Our company tried two solutions that were failures on various levels (InterWeave, which never worked at all... Zuora, which was ...
4
votes
2answers
71 views
What is the URL for using the Tooling API via SOAP?
What is the URL for using the Tooling API via SOAP?
If I already have a valid Session Id I can start using the API directly: E.g.
Partner API:
...
5
votes
2answers
79 views
How to create an article translation via API?
I am having problems to understand how can I create the translated version of an existing article through Apex. I have the KnowledgeArticleId but I don't know what's the method to create lets say a ...
3
votes
1answer
167 views
Node.js App takes 4-5 seconds to get response from Salesforce
I have a node.js canvas app that queries salesforce for accounts and there are only 10 of them , but for some reason it takes about 4-5 seconds before the response comes back. I have used both nforce ...
3
votes
2answers
79 views
Upload and attach a file to an account or opportunity
So I was wondering how I can attach a file to an account. Basically what we do is sell a product online that requires an agreement. When they buy the product, we generate a pdf of the agreement and ...
0
votes
1answer
42 views
SOAP XML node Sequence
So I recently had the task of logging in using the SOAP API. I constructed the envelope, and logged in fine with the following:
<soapenv:Envelope ...
2
votes
1answer
52 views
What are the correct scopes to use for different applications?
I am writing a desktop application (or several) to access mail, contacts and chat via the REST api (User-Agent Flow)
What are the correct and minimal scopes to use for each of these individually or ...
2
votes
1answer
44 views
Does API version matter when creating custom classes/triggers?
I noticed you can choose/change which version of the Salesforce.com API when you create a class or trigger. Are there are benefits to using a new or older version?
2
votes
1answer
52 views
“Content” API Object access for any user?
Can anyone guide me to find out what Content Objects we can access via API.
Recently I found out that "ContentWorkspaceDoc" object threw object inaccessible error when we try to execute an SOQL query ...
3
votes
1answer
63 views
MRU List when Inserting/Update record from APEX trigger
Can we set an option when inserting record via APEX Trigger that the record "does not" show up in Salesforce MRU (Recent items list) ?
9
votes
1answer
91 views
Can an Object Definition's ID be obtained programmatically?
I've noticed that SF related lists are anchored (#) by a concatenation of the current record's Id, an underscore, the Id of the related list's object definition, and then "_target" (e.g. ...
3
votes
1answer
50 views
Lead/Account relationships
Ok, so it's pretty obvious that these guys are extremely intertwined. The question I have is:
How can I, using the API and PHP, query the lead and account and get the PersonContactId if it is a ...
6
votes
1answer
168 views
API Access to Google Doc Attachments?
Is there any way to query for Google Doc Attachments? For instance, the following SOQL queries return all Notes and Attachments whose parent is a Salesforce.com record, but I can't find any equivalent ...
1
vote
1answer
68 views
Deleting all child records of an object without knowing child record ID with the API
I have two objects with a master-detail relation ship. Invoice and Invoice Lines.
I am basically syncing this up from an external program into Salesforce. During updates, a lot of changes may be ...
2
votes
1answer
169 views
Salesforce - Mass Update Picklist Values
I would like to mass update picklist values in a custom object from picklist values in a standard object.
In the absence of universal picklists, i am having to manage a few picklists in different ...
5
votes
1answer
316 views
How to access the Organization “Currency Locale” ISO Locale code (NOT Currency code) in Apex/SOQL
First of all, before telling me that this is a duplicate of the previously-asked question "Display currency symbol", READ THE WHOLE QUESTION.
Summary: I am trying to replicate the functionality of ...
2
votes
1answer
107 views
Create Self-Service User automatically
I'm looking to automatically create a self service user ("Production" field on the opportunity layout is set to true), the lookup field to the contact is also on the opportunity layout. the new user ...
3
votes
1answer
53 views
Consumption of API Requests on DEV org
I was reviewing the System Overview page in my Dev org when I noticed that the 'API REQUESTS, LAST 24 HOURS' was seemingly very high for a single user Dev org (initially at 2,964 or 58%).
I did a ...
5
votes
2answers
498 views
Efficient way to create master-detail records
I am working on creating records for a custom object type in Salesforce. There is also a line item object which has a master-detail relationship.
Invoice = Master
Invoice Line Item = Detail
I am ...
2
votes
2answers
244 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 ...
4
votes
1answer
160 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 ...
1
vote
2answers
132 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
...
7
votes
1answer
168 views
Mass-Edit records in Google Spreadsheet
Mass-Editing data in Salesforce is a pain. And even if tools like AppBuddy make this less click-intensive, none comes close to Excel or Google Spreadsheet.
So I was just thinking if one could push ...
4
votes
1answer
49 views
What is the best way to debug a post to the WebToLead servelet?
I have a VisualPage form that posts to
https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8
After the post my browser correctly gets redirected to the post value specified in ...
2
votes
4answers
313 views
Processing batches with a delay
I have an interesting challenge, I'm sure there are a few decent solutions but I'd like to get some input from the community. I am building a tool that will allow my users to use the Angel IVR ...
0
votes
0answers
61 views
Expose SF data in Wordpress
I'm using wordpress as a partner portal. Portal users are created independently from Salesforce, but they are also exist in SF as contacts (so when they are created in Wordpress manually, I can add ...
2
votes
3answers
463 views
Custom field is not visible/editable after creation (Professional Edition)
I am able to create a Custom Field on standard object (like Account or Contact) via API. I see this field was created in Salesforce UI as a custom field.
But, whenever I describe sobject via API - I ...



