• Lucky19
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi,

 

I have created a trigger on he EmailMessage object that checks the address an Email was sent to and uses that Address to match it with the Users in Salesforce that have their own personal address (a custom field) entered. When a match is found it will change the ownership of the Case that was created by Email2Case to that particular person.

 

The case is created, assignment rules change ownership to a queue. Then my after trigger changes ownership again to the correct person.

 

Now here is the strange part. After this Salesforce changes ownership of the Case to the Standard Case owner User that is specified under Case support settings if Salesforce was unable to assign a case.

 

Does anyone know why this happens? Why does this rule apply? If i look at a case history it first has an owner from the assignment rules, then an owner from my trigger and still Salesforce seems to think it was unable to assign an owner to the case and changes it back to the default setting..