function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chuckdubdubchuckdubdub 

Avoiding dupes and updating via PHP 4.x ?

I'm posting here at adamg's suggestion (below). 
 
We're running PHP 4 on our site, and I'm interested in using the SF API (along with our web-to-lead functionality) to avoid duplicate insertions of lead records.  What we'd like to do, is query the record, perhaps by email, and if it already exists, then update an activity field with the lead source and a date.  Possible to do with PHP 4?
 
Thanks! 
 
-Chuck
 
 
>>
 
Re: Possible to use API to update records and avoid inserting dupes (NOOB)?  
adamg
sforce Moderator
Posts: 675
Registered: 06-02-2003


adamg

Reply 2 of 2

Viewed 3 times


The toolkits aren't going to do this out of the box, but you can (fairly easily) write some PHP code to check to see if the email existings, etc and update accordingly.  If you can't find a link to the older PHP 4.0 based stuff (not as easy to use as the PHP5 toolkit, but still possible) post a message to the PHP boards and we'll dig it up
ClaiborneClaiborne

Make sure you get the latest version

An update to the php_sforce_nusoap sourceforge project has been posted. It includes:

- fix for namespace of headers (lead assignment headers work properly now)
- rename of soapclient to nusoapclient (avoid conflict of php 5 SoapClient)
- getUpdated(), getDeleted() and retrieve() calls
- examples of the above in example.php

http://sourceforge.net/project/showfiles.php?group_id=96634&package_id=166314