Skip to content

Instantly share code, notes, and snippets.

@nicolonsky
Created December 19, 2025 08:24
Show Gist options
  • Select an option

  • Save nicolonsky/b8cdbf018a93d7f86d4695b8feacbbc4 to your computer and use it in GitHub Desktop.

Select an option

Save nicolonsky/b8cdbf018a93d7f86d4695b8feacbbc4 to your computer and use it in GitHub Desktop.
Your festive out of office message for auto-reply πŸŽ„
// Paste into your favorite KQL engine such as Log Analytics / Sentinel / Defender / ADX
// https://aka.ms/kustofree
let AbsenceInfo = datatable
(
StartDate: datetime,
EndDate: datetime,
ActivityDisplayName: string,
AdditionalDetails: dynamic
)[
'2025-12-24', '2026-01-04', 'OOO - festive season', dynamic(["Dear colleague, I'm out of office for christmas holiday season and will take care of your request once I'm back.", "In urgent cases, find my mobile number in teams.", "Merry Christmas & looking forward to seeing you soon.", "πŸŽ„β„οΈπŸŽ", "// Nicola"])
];
AbsenceInfo
| extend StartDate = format_datetime(StartDate, 'dd.MM.yyyy')
| extend EndDate = format_datetime(EndDate, 'dd.MM.yyyy')
| mv-expand AdditionalDetails
@nicolonsky
Copy link
Author

Example:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment