I want to insert the priority into the case created automatically?
Could someone suggest me the step to implement this feature?
Domenico
I want to insert the priority into the case created automatically?
Could someone suggest me the step to implement this feature?
Domenico
In /module(inboundEmail/inboundEmail.php find the function handleCreateCase and add a line for the priority:
function handleCreateCase($email, $userId) {
global $current_user, $mod_strings, $current_language;
$mod_strings = return_module_language($current_language, "Emails");
$GLOBALS['log']->debug('In handleCreateCase');
if(!class_exists('aCase')) {
require_once('modules/Cases/Case.php');
}
$c = new aCase();
$this->getCaseIdFromCaseNumber($email->name, $c);
if (!$this->handleCaseAssignment($email) && $this->isMailBoxTypeCreateCase()) {
// create a case
$GLOBALS['log']->debug('retrieveing email');
$email->retrieve($email->id);
$c = new aCase();
$c->description = $email->description;
$c->assigned_user_id = $userId;
$c->name = $email->name;
$c->priority = 'P1';
Harald Kuske
Pre-Sales Engineer Central Europe
SUGARCRM Deutschland GmbH
Erika-Mann-Str. 53, 80636 Munich, Germany
Email: hkuske@sugarcrm.com
Home: http://www.sugarcrm.com
Ok!! Thank you!!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks