You need to sign in to do that
Don't have an account?
chuckdubdub
Updating custom lead field w/nusoap & API
Hi there,
I'm using modified nusoap.php for PHP4. Anyway, I'm trying to figure out the syntax to update a custom lead field.
I can find the unique identifier for the field in SF, but I get no joy when I added it to my update array.
Am I waaaay off??
// update Lead record
$contact1 = new sObject('lead',
$id,
array(
'Description' => 'My test',
// this is the custom field right below here which equates to a checkbox in the SF interface.
$contact1 = new sObject('lead',
$id,
array(
'Description' => 'My test',
// this is the custom field right below here which equates to a checkbox in the SF interface.
// I want it checked... I've tried 1 and '1' but no dice:
'00N300000016PAX' => 'TRUE',
'Email' => 'cwyatt123@blahblah.com'
),
array('Phone', 'Fax')
);
$updateResult = $sfdc->update($contact1);
print_r("\nupdate one: \n\n");
print_r($updateResult);
'Email' => 'cwyatt123@blahblah.com'
),
array('Phone', 'Fax')
);
$updateResult = $sfdc->update($contact1);
print_r("\nupdate one: \n\n");
print_r($updateResult);
Thanks,
Chuck
Message Edited by chuckdubdub on 05-17-2006 03:47 AM
Message Edited by chuckdubdub on 05-17-2006 03:48 AM
Park
$id,
array(
'Description' => 'My test',
'white_paper_c' => 'TRUE',
'Email' => 'cwyatt123@blah.com'
),
array('Phone', 'Fax')
);
$updateResult = $sfdc->update($contact1);
$contact1 = new sObject('lead',
$id,
array(
'Description' => 'My test',
'Email' => 'cwyatt123@blablah.com,
$whitepaperval
),
array('Phone', 'Fax')
);