How to retrieve business hours data in SuiteCRM

Hello everyone,

I’m currently using SuiteCRM version 7.14.5 and would like to retrieve business hours data.

image

If anyone could kindly guide me on how to achieve this programmatically, I would greatly appreciate it.

Thank you in advance!

I think you can get this data from the AOBH_BusinessHours module. The bean file is at {ROOT\modules\AOBH_BusinessHours\AOBH_BusinessHours.php. There is a method called getBusinessHoursForDay($day) which I think provides the required details. You can refer to the code to get the details in file {ROOT\modules\Administration\BusinessHours.php, $bh = $businessHours->getBusinessHoursForDay($day); at lines around line no 45.

2 Likes