How to find if a boolean field is true on the latest Opportunity
Hi there,
I am having trouble finding a solution for my email script. Here I am trying to find if a boolean field is true or false on a customer's latest opportunity.
Depending on the result, I would like to display different text.
This is the code I am using:
#set( $sortedList = $sorter.sort( $OpportunityList,["createdAt:desc"]) )
#if ($sortedList.get(0).HP_Payment_Protect__c)
True, you have Payment Protect
#else
False, you do not have Payment Protect.
#end
Please, and thank you.