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.
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.
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
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.
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.
In InboundEmail.php there is a function called handleCreateCase. It has this line.
This if block is resonsible for setting the account name on a case.PHP Code:if($accountIds = $this->getRelatedId($contactAddr, 'accounts'))
-Samir
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks