Results 1 to 5 of 5

Thread: Inbound email case creation

  1. #1
    speed is offline Senior Member
    Join Date
    Sep 2008
    Posts
    22

    Default Inbound email case creation

    I got it working. Just one thing I'd like to fix. When a case is created from inbound email, it's blank for Account Name, Priority and Status. I'm mostly interested in getting the Account Name filled. I've included a screenshot.
    Attached Images Attached Images  

  2. #2
    sgandhi is offline Sugar Team Member
    Join Date
    Aug 2007
    Posts
    217

    Default Re: Inbound email case creation

    Hey Speed,
    Look at the function handleCreateCase in Inbundemail.php. Thats where the case creation happens. You need to put some logic over ethat to set the proirity and status. For the Account name, we do some logic here. If the person who has send an email, if its email address matches with the email address of an account in the system then we will assign that account to the case otherwise it will be empty. So if its empty and you want to assign it to a particular account then you need to add some php code there.

    -Samir

  3. #3
    speed is offline Senior Member
    Join Date
    Sep 2008
    Posts
    22

    Default Re: Inbound email case creation

    Ok, that's what I was afraid of. I know the basics of php but I'm far from a developer. I'll give it a look.

  4. #4
    dgilroybs8 is offline Senior Member
    Join Date
    Dec 2008
    Location
    Bristol, UK
    Posts
    25

    Default Re: Inbound email case creation

    Hi Samir,

    You said :-

    "For the Account name, we do some logic here. If the person who has send an email, if its email address matches with the email address of an account in the system then we will assign that account to the case otherwise it will be empty. "

    Is this "code" something you can share? This is exactly what I am trying to do.

    Regs....David.
    Last edited by dgilroybs8; 2008-12-22 at 04:05 PM.

  5. #5
    sgandhi is offline Sugar Team Member
    Join Date
    Aug 2007
    Posts
    217

    Default Re: Inbound email case creation

    In InboundEmail.php there is a function called handleCreateCase. It has this line.

    PHP Code:
    if($accountIds $this->getRelatedId($contactAddr'accounts')) 
    This if block is resonsible for setting the account name on a case.

    -Samir

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Replies: 9
    Last Post: 2007-06-04, 07:50 PM
  3. Replies: 0
    Last Post: 2006-06-20, 11:25 PM
  4. Sugar4 Inbound Email Case Association
    By karlossugar in forum Help
    Replies: 1
    Last Post: 2006-01-14, 01:54 AM

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
  •