Could you give an example of what this looks like? |
Well, every webhook/scripting engine is going to look different. Generally speaking you'll be sending {{system.datetime}} in the webhook payload, then getting back a true/false for on-hours/off-hours.
The schedules could be expressed in several different ways, like cron-style*:
* 8-16 * * MON-FRI
* 9-17 * * MON-FRI
Or more JavaScript-y:
8to4 : { startHHmm : "08:00", endHHmm : "16:00" },
9to5 : { startHHmm : "09:00", endHHmm : "17:00" },
SchedulesByOffice: {
"New York" : 9to5,
"Los Angeles" : 8to4,
"Columbus" : 9to5
}
I should have been clear that you either need to be using a scripting plug-in for Marketo, or hire a developer to build a special-purpose one.
*The cron and JS object examples here aren't complete or exactly equivalent, but you get the idea.