Results 1 to 3 of 3

Thread: Priority into the case created automatically?

  1. #1
    domenico1983 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    108

    Default Priority into the case created automatically?

    I want to insert the priority into the case created automatically?
    Could someone suggest me the step to implement this feature?

    Domenico

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Priority into the case created automatically?

    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


  3. #3
    domenico1983 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    108

    Default Re: Priority into the case created automatically?

    Ok!! Thank you!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 2010-04-01, 04:04 PM
  2. Replies: 18
    Last Post: 2008-09-18, 01:32 PM
  3. Send email to Contact when a Case is created
    By MichaelRLevy in forum Help
    Replies: 1
    Last Post: 2007-09-27, 10:13 PM
  4. Replies: 9
    Last Post: 2007-06-04, 07:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •