function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Samantha StarlingSamantha Starling 

use ref ID to link email to custom object in salesforce

I've read every post I can find on this topic and have followed the instructions in each. I used the formula below and have the RefID populating correctly. However, when I test via email to/from the custom object and to/from my mail client, nothing attaches. Any help in getting emails to attach to a custom object would be very much appreciated.

 "[ref:00D"&MID(Id,4,1)&RIGHT($Organization.Id, 4) &"."& LEFT(Id,4)&RIGHT(Id,5) &":ref]"
pconpcon
If you are doing a custom object and a custom email handler, you have to do a custom parser of the ref id.  Unfortunately there is nothing that will automatically do the linking.  You will have to parse the body / subject of the email to find the reference Id yourself and get the object Id as well.
Ignacio JimenezIgnacio Jimenez
Hi, I am having the same need here. Any directions? Need to parse the {RefId: recordId} that should be somewhere in the email body.
Thanks!