You need to sign in to do that
Don't have an account?
tawfik-hai
Hi everyone,
We are using a visualforce page to host buttons to create case related emails.
The problem is that the Thread ID gets expanded by 3 digits and gets added at the top of the email for no reason.
for example, it changes from [ ref:_00D30ups._50040qCn7G:ref ] to [ ref:_00D30ups._50040qCn7GAAS:ref ]
It makes the system creates a new case insead.
The email-to-case setting is set NOT to include Thread ID in Subject or body, we have this as a field in the template itself.
Any help is appreciated.
Case Thread ID gets expanded
Hi everyone,
We are using a visualforce page to host buttons to create case related emails.
The problem is that the Thread ID gets expanded by 3 digits and gets added at the top of the email for no reason.
for example, it changes from [ ref:_00D30ups._50040qCn7G:ref ] to [ ref:_00D30ups._50040qCn7GAAS:ref ]
It makes the system creates a new case insead.
The email-to-case setting is set NOT to include Thread ID in Subject or body, we have this as a field in the template itself.
Any help is appreciated.
Do this - make a new formula field on the Case with this formula:
That should chop off the extra characters and close the loop.
As for that information getting automatically added on your VF template - can you post the code? (remember to use the <> button to format!)
here is the VF page code for the button:
<apex:commandButton value="Case Email" style=" border:3px solid flash black; horizontal-align:right;background:red;colour:white;width:200px; height:30px" action="https://na2.salesforce.com/email/author/emailauthor.jsp?&p2_lkid={!Case.ContactId}&p2={!Case.Contact}&p3_lkid={!Case.Id}&p3={!Case.CaseNumber}&template_id=00X40000001Ip6W&retURL=%2F{!Case.Id}"></apex:commandButton>
The default subject line of the template has NO Thread ID.
The email-to-case settings for adding the Thread ID automatically is off:
Insert Thread ID in the Email Subject [Not Checked]
Insert Thread ID in the Email Body [Not Checked]
Place User Signatures before Email Threads
The email is initially generated with no Thread ID in the subject line.
However, when submitted, it is received with the Thread ID+3extra letters, this causes the creation of a new case.
Regards.
I faced a similar issue with a VF page containing a href URL for the email editor:
location.href='/_ui/core/email/author/EmailAuthor?isdtp=nv&rtype=003&template_id=XXX&saveURL=/apex/PageClose&retURL=/apex/PageClose&p3_lkid={!Case.Id}&p6=Ticket {!Case.CaseNumber} {!Case.TECH_ThreadID__c}'
In the URL I use a custom formula ThreadID that determines the salesforce threadid fir the case.
Doing this, the merge field was ok for the subject 'Ticket XXX ThreadID' with a correct ThreadId but the email was received with an expanded Thread ID.
I added the template ID as another parameter and in URL and like magic (cf above), the thread ID is not expanded anymore when the email is sent !
Try to do the same and check if it solves your issue.
The real fix of course is that Salesforce need to check the length of the case Id in the url before they create their thread Id