You need to sign in to do that
Don't have an account?
MikeD13
Email Service: Email to Case Implementaion and ThreadID
I am in the process of setting up an Email Service to handle Email2Case. The service works when creating a new case, however, I'm having problems when trying to update existing cases.
I have a few questions:
1) Is there a standard format for the ThreadID. Example - ref:[8 Characters].[8 Characters]:ref
2) How do I find a case by the thread ID? The thread ID appears to be a truncated version of the organization and case ID's but this seems odd to me. If it is, what is the formula for truncting the ID's (first 4 plus last 4 is what it looks like).
Thanks,
Mike
I have a few questions:
1) Is there a standard format for the ThreadID. Example - ref:[8 Characters].[8 Characters]:ref
2) How do I find a case by the thread ID? The thread ID appears to be a truncated version of the organization and case ID's but this seems odd to me. If it is, what is the formula for truncting the ID's (first 4 plus last 4 is what it looks like).
Thanks,
Mike
https://www.salesforce.com/appexchange/detail_overview.jsp?id=a03300000059dqdAAA
Happy threading!
Baiscally, the formula is this:
[First 4 digits of the OrganizationID followed by all digits after the last zero].[First 4 digits of the CaseID followed by all digits after the last zero]
For example (I know they are not actual ID's):
Organization ID = 00DX00000ased23
Case ID = 00a40000000DDs2
Thread ID = 00DXased23.00a4DDs2
This is the pattern I used to determine whether or not an email was a reply (please let me know if there are any problems with this... I'm new to using resgular expressions):
I did finally receive a response from Saleforce support regarding this issue. They informed me that it was not possible to retrieve a case using the Thread ID and suggested I retrieve the case using the Case ID. Wow!!! Ya think?!?! Let me just use the case ID that's in the.... oh, wait... they use the Thread ID in the emails... thanks for the help, Saleforce!!!!
i think i'll keep my implementation using the case.id as the thread.
cheers!