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
MaxFrielMaxFriel 

Replacing merge fields in template...

All,

I posted this question in the VF boards but figured this might be a better place for it.  I am looking for a way to grab a template and enter in the merge fields for it.  In this instance, all templates are based off of case so its relative easy.  The problem is there are certain fields that are available when making a template (Case.OwnerFullName) that do not actually exist on the object.  I am aware they all link to an actual field, for instance Case.OwnerFullName is really just Case.Owner.Name.  I would prefer not to have to go and manually code in substitutions for this.  Is there a better way?