crissleonetti

Velocity Script - Replace after token

Jun 23rd, 2021
744
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #set ($accountOwner = $lead.Account_Owner__c)
  2. #if ($accountOwner == "")
  3. The MicroStrategy Team
  4. #else
  5. #set ($accountOwnerSimple = $accountOwner.replaceAll("\s*\(.*\)\s*$", ""))
  6. $accountOwnerSimple
  7. #end
  8.  
RAW Paste Data