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

ok thanks i will try that and then mark answer as correct when tested working


do you know if i just send that one email notification or calendar invite to myself? so i can test this in DEV? i don't want to turn on email servers then all the emails would go out... so now i am thinking how can i test just this one thing? any ideas?



any one else?



Thanks


danzak
ServiceNow Employee
ServiceNow Employee

The are a few things you can do here. The Email Properties page has a property "Send all email to this test email address (non-production testing)" and you can enter your email address. This will ensure any emails that do get sent at least only get sent to you. You can also clear out the emails on the system:


var grEmail = new GlideRecord('sys_email');


grEmail.query();


grEmail.deleteMultiple();



That should delete all emails on your system. If you don't want to delete them, you can change the state of any the "send-ready" email to "sent" or "send-ignored". This has a similar effect and you don't lose data.



I don't know any way around turning on those servers though. As a final check before turning on sending, go to sys_email.list and ensure there aren't any unsent emails. You'll want to ensure that your search filter isn't just for today, or you might miss some.


well good idea danzak lets see what approach i will take to these suggestions and i will let you know... i think i will just delete all emails there in DEV instance so i wont have a change of sending any real emails out to the end user on accident.... thats my best bet. and just re-create the one i need. and have that one sent out to me. i don't want my email flooded



Thanks for the ideas



once i test i will mark as correct if the script modification worked or not. have a good weekend.


Tejaswi Gundu
Tera Contributor

Hi @danzak , Good day!

 

Do you have any idea on how to modify this template to send '.ics' file to Google Calendar instead of Outlook.

Please let me know, if you have any thoughts on that.

 

Thank you!