Jan 23, 2014

How to update Sugar CRM user Account & contacts detail usign SUGAR API in PHP?

$set_entry_parameters = array(
//session id
"session" => $session_id,
//The name of the module from which to retrieve records.
"module_name" => "Accounts",
//Record attributes
"name_value_list" => array(
 //to update a record, you will need to pass in a record id which you have stored in DB
 array("name" => "id", "value" => $accountStoredId),
 array("name" => "name", "value" => $name),  
 array('name'=>'billing_address_street ', "value"=>$billing_address_street),
 array('name'=>'billing_address_city', "value"=>$billing_address_city),
 array('name'=>'billing_address_state ', "value"=>$billing_address_state),
 array('name'=>'billing_address_postalcode ', "value"=>$billing_address_postalcode)
),
);
$set_entry_result = call("set_entry", $set_entry_parameters, $url);

Related Post:
How to use Sugar CRM API integration with PHP?
How to add user data in Sugar CRM custom module and make relationship in PHP?

No comments:

Post a Comment