You need to sign in to do that
Don't have an account?
Mike @ Partners
Update more then one lead at the same time
I am trying to update more then one lead at a time. I am pulling the lead ID numbers and then i need to update all the ID numbers with a cretin field. I have gotten the php5 toolkit to pull the ID no problem, and i can get it to update no problem. The problem is I can only get it to update one ID. And ideas on where I am going wrong?
Thank you for your help,
Mike
Code: And here is what i get retuned for this code:
object(stdClass)#8 (3) { ["errors"]=> NULL ["id"]=> string(18) "00Q3000000CTc5OEAT" ["success"]=> bool(true) }
I dont get a error. The php toolkit doesnt have a proublem, but i need it to update all the IDs it pulls out. Right now it will only update one, and leave that other ID as if nothing happend.
Thank you foe your help,
mike
Also try batching up the updates like this:
Another thing, you only need one try/catch statement to surround your update call.
Message Edited by Tran Man on 05-24-2006 05:41 PM