Archive for the ‘Getting Started’ Category

Catching Salesforce Exceptions

Pretty simple, but for those new to PHP or to exception handling:

// instantiate a SOAP connection to Salesforce
// catch Salesforce exception if there is one
try {
$crmHandle->createConnection(SALESFORCE_WSDL);
} catch (Exception $e) {
// handle exception – did you set the WSDL path above?

// print out the exception string
echo $e->getMessage();
}

If an [...]

Salesforce Gotchas and Undocumented ‘Features’

Today we’re going to go through some things that I hope you find interesting and informative, things that hopefully will make your development process a lot easier. With many of the following issues, I’ve found the documentation either sparse, obscured, or non-existent.
- Objects (such as individual leads or contacts) have either a 15-character or [...]

Creating a Lead via the Salesforce.com API

In our next installment, we’re going to take a closer look the lead generation code from the end the first post, as well as finish getting your SFDC development environment set up.
Choosing the Right WSDL For You and Your Organization
Salesforce uses SOAP as its Web Services protocol, and SOAP uses an XML file [...]

Welcome to PHP and Salesforce!

PHP and Salesforce is a new blog dedicated to helping web developers take control over their CRM integration. Most of the early entries will focus on building a reference of Salesforce PHP examples, followed by discussions on topics including performance, concurrency, CRM framework architecture (and whether you should consider building one), and strategies for [...]

-->