Blog Projects
Escape Keys
A ColdFusion and Web Development Blog by Tom de Manincor
 

I appreciate the positive feedback and suggestions I have received on the initial release of salesForceCFC. So I took the time to put together some stuff that will help implement it.

The latest package includes a landing page, for testing and a link to the cfcdocs.

The test form, will run thru the basic creation of the object, login, and test each method. It is intended to be used as a diagnostic. I added a validate() method, as well. It checks the objects state and looks for an active secure session before trying to send any SOAP requests. The return structs will provide full error information and help you track down the cause quickly.

To download check out the project salesForceCFC at RIAForge

For the latest changes, instructions, and usage notes check out the readme.txt, now included with the package.

salesForceCFC
version: 0.2
date: 3/1/2008

-Overview-
This CFC allows you to connect and work with SalesForce.com,
one of the largest CRMs out there. It does so by generating SOAP requests,
and manipulating their responses.
This will make it easy to work with their SObjects,
and allow you to do more then just query.

-requirements-
ColdFusion 7 or Higher
Salesforce.com Account (Developer Accounts are freely available)

-installation-
1. place salesForceCFC folder inside root
2. browse to folder to run test form or view documentation

-usage-
you can copy the salesForce.cfc into any app and create objects
or map to it and use it from anywhere or in an object factory
remember to init() first, and then login() to activate a session

-note-
becareful with concurrency issues if using mutliple accounts.
it is not meant to be persistent if using more then 1 account.

0.2 -CHANGE LOG-
- feature - added landing page
- feature - added test form
- feature - added cfcDoc
- enhancement - created sendSoapRequest method and updated code
- enhancement - added validate method
- fix - retrieve now returns array of struct for results
- fix - added caching control for cfhttp and soap requests
- deprecated - hasActiveSession()

Related Blog Entries

Comments:

[Add Comment]

Dan Llewellyn says:

Could you give some sample code for how to use the new features, primarily the query more? I know that you have to loop over it, and give it the query locator, but how can you take all the results and assemble them into one result set? And how do you know when to stop looping?

3/3/09 3:11 PM

[Add Comment]