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
vikas rathi91vikas rathi91 

want to replace <a href=https://ap2.salesforce.com/{!Enhancement_Tracker__c.Id}">Click Here</a> from {!Enhancement_Tracker__c.Id}

Hello Every one 

I want to replace  {!Enhancement_Tracker__c.Id}  from <a href=https://ap2.salesforce.com/{!Enhancement_Tracker__c.Id}">Click Here</a>

I am using 
string body = obj.emailtemplate 
bodyString = bodyString.replace('{!Enhancement_Tracker__c.Id} ',objEnhancement.id);

and result is https://ap2.salesforce.com/%7B!Enhancement_Tracker__c.Id%7D

I want the id of the record
any help how to replace 

Thanks
Vikas Rathi