AnsweredAssumed Answered

Velocity script adding a space before my URL

Question asked by Eoin Lyons on Sep 4, 2019
Latest reply on Sep 6, 2019 by Sanford Whiteman



I don't fully understand the code below, but am hoping someone who does can tell me why there's a space being inserted before my URL when I apply this script token to an email.



#set($Calendly = $display.alt($OpportunityList.get(0).Calendly_OC_Checkin__c.trim(),""))

  $Calendly.isEmpty() ||   
  $Calendly.indexOf(" ") == 1
#set($Calendly = $Calendly.trim())