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
NAlmolaNAlmola 

Receive email-2-case emails based on business hours

Our company requires visbility of emails coming through from a particular customer on our email-2-case address during the times specified below: 

Monday to Friday: 17.00 to 09.00 (OOH)
17.00 Friday to 09.00 Monday (OOH)

This is not our business hours but rather for providing OOH support for customers. Is there a way of doing this? 
CLKCLK
Write a worklfow rule on Case creation which will check the time & day of createdDate and shoots the email alert if finds createdDate in specified time period.
NAlmolaNAlmola
Hello, 

We don't need an email alert for these just visibility of the cases generated by this particular customer during this period only. 


Kind Regards N
CLKCLK
Ok then
1) you need a custom field(Checkbox) "OOH" on Lead
2) tick that field using before insert trigger which will business Hours in the logic
3) and final thing, a report using Filter i) leadSourse = 'Email' ii) OOH = true