Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to set reminder time in iCalendar invite

Celliven
Giga Expert

Hi

I am using the Calendar invite, integrating to Outlook, as part of Change Management.

It works fine using the below script, though I have been asked for it to set the Outlook reminder to 2 hours before the start time.

Is there a line to be added that would set the reminder time?

find_real_file.png

Thanks

Chris

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Per wikipedia, you need to add a section like this before the



END:VCALENDAR



line



BEGIN:VALARM


TRIGGER:-PT1440M


ACTION:DISPLAY


DESCRIPTION:Reminder


END:VALARM



The second line is the number of minutes before to trigger (in minutes). Don't know all the options, but here's the reference.



iCalendar - Wikipedia, the free encyclopedia


View solution in original post

7 REPLIES 7

Hi Chuck,

 

Thank you for the solution. But, when I am trying to add below lines of code, I see reminder is always set to 1M. Can you help me further?

 

BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
DESCRIPTION:${alarm_time}
END:VALARM

 

Suman_1411_0-1702058823126.png

Thanks,

SS

saranyavs
Tera Expert

 I tried below code, but still Reminder is 'None' in Outlook Calender.

============

BEGIN:VCALENDAR
PRODID:-//Service-now.com//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:${to}
ORGANIZER:MAILTO:${from}
DTSTART:${dtstart}
DTEND:${dtend}
LOCATION:${location}
TRANSP:OPAQUE
SEQUENCE:${sys_mod_count}
UID:${number}
DTSTAMP:${dtstamp}
DESCRIPTION:${description}
SUMMARY:${summary}
PRIORITY:3
X-MICROSOFT-CDO-IMPORTANCE:${priority}
STATUS:CONFIRMED
CLASS:PUBLIC
BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

Dan English
Tera Contributor

I found this article extremely helpful in setting a 15 minute reminder for my change request calendar items.

 

https://www.servicenow.com/community/developer-articles/servicenow-calendar-invites/ta-p/2304049