Convert User's ID to User's Name in Email Script
Hello Community,
There is a lookup field (to the Users object) on a Salesforce Custom Object that I need to utilize in an upcoming campaign. In the email, I would want to User's Full Name to appear.
Assuming I need an email script to do this, I've tried various ways to get the Name (not the ID) to pop in, but have been unsuccessful.
Here is the working script that returns the User ID:
#set( $psm_name = "Onboarding Specialist" )
#if( ${PSM__cList.get(0).PSM_Owner__c} )
#set( $psm_name = ${PSM__cList.get(0).PSM_Owner__c} )
#end
$psm_name
Is there a simpler way than having a bunch of if/then statements that would need to be maintained as the Onboarding team changes?
Thanks!