Troy's Blog

Life, family, work, and my experiences with products, services, stores, and the people I encounter each and every day.

My Photo
Name: Troy Pullis
Location: Minneapolis, Minnesota, United States

Thursday, October 11, 2007

Using CF to create a Lead in SalesForce using SOAP

At my day job, Secure Computing, I needed to figure out how to create a new Lead in SalesForce from a partner deal registration web application. I already had experience using Web-to-lead (WTL), but this would not work for the type of Lead I was trying to create. In this case, the Lead had fields for a Contact and Account (both lookup fields), which WTL doesn't support.

I did some google searching for ColdFusion web services and SalesForce and found myself at the Adobe forums. After reading all the posts and grabbing some sample code, I started to figure it out. After a few days of coding and testing using SOAP web services, I had my solution. I posted my findings back to the Adobe forum to give back to the community, and my submission is found here. The only drawback is I wasn't able to associate the Lead to a Campaign. However, it wasn't a show stopper and my solution is now in production.