You need to sign in to do that
Don't have an account?
Nate Lindo 2
subtracting dates on an object and incorporating business hours
I have a field on the cases object with the following formula:
IF(
ISBLANK(Initial_Email_response_with_time__c ),
NULL,TEXT(
FLOOR(Initial_Email_response_with_time__c - CreatedDate )
) & " Days " &
TEXT(
ROUND(MOD((Initial_Email_response_with_time__c - CreatedDate )*24,24),0)
) &" Hours " &
TEXT(
ROUND(MOD((Initial_Email_response_with_time__c - CreatedDate )*1440,60),0)
) &" Minutes ")
Is there anywhere to incorporate the business hours? The objective of this field to report on cases open and making sure they are responded to within 4 hours but when it comes to off hours and weekends, it wont work.
IF(
ISBLANK(Initial_Email_response_with_time__c ),
NULL,TEXT(
FLOOR(Initial_Email_response_with_time__c - CreatedDate )
) & " Days " &
TEXT(
ROUND(MOD((Initial_Email_response_with_time__c - CreatedDate )*24,24),0)
) &" Hours " &
TEXT(
ROUND(MOD((Initial_Email_response_with_time__c - CreatedDate )*1440,60),0)
) &" Minutes ")
Is there anywhere to incorporate the business hours? The objective of this field to report on cases open and making sure they are responded to within 4 hours but when it comes to off hours and weekends, it wont work.
You wont be able to utilize business hours in formula , you have to do calcualations using Apex Code to utilize Business Hours record.
Thanks
Shashikant