Hi,
We are able to create a case using inbound email.
I want to change case assignment to be a single user.
When i change priority in InboundEmail.php file, it is working however assigned user id is not updating.
function handleCreateCase($email, $userId) {
global $current_user, $mod_strings, $current_language;
$userId = "xxxxxx-xxxx-xxx-xxx-xxxxxx";
$mod_strings = return_module_language($current_language, "Emails");
$c = BeanFactory::newBean('Cases');
$this->getCaseIdFromCaseNumber($email->name, $c);
if (!$this->handleCaseAssignment($email) && $this->isMailBoxTypeCreateCase()) {
// create a case
$GLOBALS['log']->debug('retrieveing email');
$email->retrieve($email->id);
$c = BeanFactory::newBean('Cases');
$c->description = $email->description;
if (empty($c->description) && !empty($email->description_html)) {
$c->description = $email->description_html;
}
$c->assigned_user_id = $userId;
$c->name = $email->name;
$c->status = 'New';
$c->priority = 'P2';
Please help me. Thanks!
Hi pavan agrawal
What is the version of your SugarCRM instance?
It is not a good idea to modify a core script because it is not an upgrade safe procedure.
Eventually you can update the assigned user through Process Author of ENT edition.
Regards