Fields / Formula / function

IsWorkingNow

True when, at this moment, the user is within the Working Hours set for today's weekday (Set Working Hours in User Settings, or on the user's page in Setup > Users), read on that user's own clock: their Time Zone, else the workspace's. A day's Start counts as working and its End does not: with 9:00 AM to 5:00 PM, 9:00 AM is working and 5:00 PM is not. Give the user as a field that holds one, like OwnerId, or leave it out to mean the person the formula runs for: whoever is viewing the record, list or report; in a flow that runs when a record is saved, the person who saved it.

Syntax

IsWorkingNow(user)

Returns

Boolean (True or False, never blank).

Example

IsWorkingNow(OwnerId)

Notes and limitations

False when the user has no Working Hours set, when today's day is not a working day, while the user is Out of Office (from the start to the end of their Out of Office dates), and when there is no person to check: IsWorkingNow() in a flow that does not start from a record being saved (a schedule, the Run button, an inbound webhook, a guided screen) is always False, so give it a user there. The answer is worked out each time the formula is read, so a formula field using it can show True to one person and later False.