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.

change calendar .ICS File

reyservicenow
Tera Expert

is there a way to change the   .ics file created for change Requests to mark the calendar item as free instead of busy?

1 ACCEPTED SOLUTION

danzak
ServiceNow Employee
ServiceNow Employee
  • If your Notification is sending calendar invites, it likely uses a template
  • Email templates (like "change.calendar.integration") have the values of the ics file
  • You can copy that template and modify it as needed to add whatever properties you need
  • Outlook seems to use: X-MICROSOFT-CDO-BUSYSTATUS
  • You can try adding the following line to the calendar template that your notification is using:

X-MICROSOFT-CDO-BUSYSTATUS:FREE



See this post for a far more in-depth explanation than mine:


ServiceNow Calendar Invites


View solution in original post

9 REPLIES 9

danzak
ServiceNow Employee
ServiceNow Employee
  • If your Notification is sending calendar invites, it likely uses a template
  • Email templates (like "change.calendar.integration") have the values of the ics file
  • You can copy that template and modify it as needed to add whatever properties you need
  • Outlook seems to use: X-MICROSOFT-CDO-BUSYSTATUS
  • You can try adding the following line to the calendar template that your notification is using:

X-MICROSOFT-CDO-BUSYSTATUS:FREE



See this post for a far more in-depth explanation than mine:


ServiceNow Calendar Invites


mine look like this:



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


END:VEVENT


END:VCALENDAR


so i would change it to this?:



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-BUSYSTATUS:FREE


STATUS:CONFIRMED


CLASS:PUBLIC


END:VEVENT


END:VCALENDAR


danzak
ServiceNow Employee
ServiceNow Employee

That looks correct to me.