The CreatorCon Call for Content is officially open! Get started here.

How to get approver name using email script

avinashdubey103
Tera Guru

I have a requirement to print the approver name using email script , below is the script , it is printing the state not the approver name.

 

 if(stateRitmNumber == "requested")
    {
       template.print("<br><br><Strong>State : Pending Approval of  ${approval}");
    }
    else
    {
    template.print("<br><br><Strong>State : </strong>" + stateRitm);
    }
1 REPLY 1

pra16
Tera Contributor

Hey @avinashdubey103 ,

 

Based on my understanding approval field doesn't hold users. Try 'assigned to'/'Requested for' or any user reference fields in the table and validate if it meets the requirements.