public function _setEntryForContact() { global $timedate; $current_date = $timedate->nowDb(); $time = mt_rand(); $first_name = 'SugarContactFirst' . $time; $last_name = 'SugarContactLast'; $email1 = '*****@*****.**'; $result = $this->_soapClient->call('set_entry', array('session' => $this->_sessionId, 'module_name' => 'Contacts', 'name_value_list' => array(array('name' => 'last_name', 'value' => "{$last_name}"), array('name' => 'first_name', 'value' => "{$first_name}"), array('name' => 'do_not_call', 'value' => "1"), array('name' => 'birthdate', 'value' => "{$current_date}"), array('name' => 'lead_source', 'value' => "Cold Call"), array('name' => 'email1', 'value' => "{$email1}")))); SugarTestContactUtilities::setCreatedContact(array($result['id'])); return $result; }