Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Hey Sanford, How do you sort the list based on a Boolean field? I want to sort so the opportunity that "closed"=false and "created date" descending is at the top.Your help is much appreciated!
Sanford,How can I wrap the last statement in the .isEmpty clause? $OpportunityList[0].Opportunity_Owner_Mobile_Phone__c is populating in the email when the field is bland. I can't seem to find the right statement. #if( !$OpportunityList[0].Opportunity_Owner_Mobile_Phone__c.isEmpty() )#set( $sortedLi...
Thanks Sanford,I took what you said and also incorporated learnings from your blog https://blog.teknkl.com/sorting-objects-and-lists-in-velocity/ to sort with more than one element.Here is my final version for others to learn from: #set( $sortedList = $sorter.sort( $OpportunityList,["IsClosed:asc",...
Hi all,So we know that a person can have more than one opportunity, and that not everyone has the same amount of opportunities. When creating a velocity scripting token to pull from the opportunity, how do I tell it to pull from the most recent opportunity?- I am trying to pull the opportunity owner...
Forgot to mention that FirstName is checked on the right hand side.
What am I doing wrong!? #if ($lead.FirstName.startsWith("First") )#set ($name = "Hello")#else#set($name = "Hello $display.capitalize($lead.FirstName.toLowerCase())")#end$nameWhat I am trying to do... Leads can have the name "First Name 123". I want to change that to just Hello and then otherwise nor...