A one-shot reminder trigger that deletes itself
“Remind the client 48 hours before their slot.” “Chase the approver on Thursday at 9 if it’s still Pending.” These aren’t nightly jobs. They…
A one-shot reminder trigger that deletes itself
“Remind the client 48 hours before their slot.” “Chase the approver on Thursday at 9 if it’s still Pending.” These aren’t nightly jobs. They…
Business Hours Between
Calendar hours lie about SLAs. A ticket opened Friday at 4pm and closed Monday at 10am looks like 66 hours and feels like two…
Add Business Days
“Due in three business days” is not date + 3. Weekends and company holidays get in the way. addBusinessDays(date, n, holidays) moves a date…
Is Last Business Day Of Month
Apps Script has no “last business day of the month” trigger. The reliable pattern is a daily time trigger plus a guard at the top of the job…
Create One Shot Trigger At
Some jobs should run once: send the reminder Thursday at 9, close the form at midnight, re-check the invoice in two hours…
Is Within Business Hours
A time-driven trigger that fires at 3am and emails a client is a support ticket waiting to happen. isWithinBusinessHours(startHHmm, endHHmm…