function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to check if datetime field value is within next 5 minutes in salesforce formula field?

Hi All,

Can anyone help me with validating if the DateTime field value is within the next 5 minutes in the salesforce formula field?
DateTime is a custom field.
Thiruchuri AdityanThiruchuri Adityan

Something like below :

NOW() <= customdatetime_field__c && customdatetime_field__c >= NOW()+(15/1440)

PS: Above logic will return a true/false. .tb_button {padding:1px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}.ws_toolbar {z-index:100000} .ws_toolbar .ws_tb_btn {cursor:pointer;border:1px solid #555;padding:3px} .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden} .ws_toolbar img {padding:2px;margin:0px}