Skip to main content
Adrian_Bivens
Level 2
July 26, 2021
Question

Friendly Time Format Options for Velocity Scripting Salesforce Custom Field

We are not familiar with velocity scripting and are trying to understand how we can format Time fields in our velocity token.

 

We are referencing a Salesforce custom field on the Case object.

 

We currently have this much completed:

#if( !$Case__cList.isEmpty() ) #set( $sortedCase__cList = $sorter.sort($Case__cList,"CreatedDate:desc") ) #set ($latestSortedCase = $sortedCase__cList[0]) ${latestSortedCase.Meeting_Time__c} #end

 

 

Any help is appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
July 26, 2021
Have you read the seminal post on Velocity days and times?

https://blog.teknkl.com/velocity-days-and-weeks/
Translate