You need to sign in to do that
Don't have an account?
Sindhu Nagabhushan
Before insert trigger on Email Message object
Hi,
I need help in writing before insert trigger on Email Message
My Requirement is -
If sender address is already present in web email of any case, the incoming email should attach to that case.
Please help me how to write this trigger.
I have created thread id formula field to update the thread id of the case.
Thanks in Advance
I need help in writing before insert trigger on Email Message
My Requirement is -
If sender address is already present in web email of any case, the incoming email should attach to that case.
Please help me how to write this trigger.
I have created thread id formula field to update the thread id of the case.
Thanks in Advance
The code should be similar to what I have written below. Replace the exact object name and fields as per the configurations you have in your Organization.
For the above code replace the following per your application -
EmailMessage - Replace it with the object name
EmailMessage.Thread_Id__c - Replace it with the field present on the above object that is storing the Thread Id
EmailMessage.Web_Address__c - Replace it with the field present on the above object that is storing the Web Address of the sender
ThreadId - Replace it with the formula field present on Case
SenderAddress - Replace it with the field present on Case that stores the sender's email address
Thanks
Anupam