Add Outlook Appointment

questsal78
Giga Expert

Hi there,

Instance: Istanbul

Question: I'm trying to add appointment in Outlook and tried sending meeting invitations using articles available on google. I've succeeded to receive ics attachment file in email but I've two problems:

1) ics file I received in attachment doesn't open and I couldn't do anything with it. please see below screenshot:

find_real_file.png

2) Basically I need to add appointment directly to a mailbox, it has been confirmed by client and I want to add this in outlook calendar. Not sure if I need minor code adjustment in below code that I used to send meeting invitation in an email template:

BEGIN:VCALENDAR 
PRODID:-//Service-now.com//Outlook 11.0 MIMEDIR//EN 
VERSION:2.0
METHOD:REQUEST 
BEGIN:VEVENT 
ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=FALSE:MAILTO:${to} 
DTSTART:${dtstart} 
DTEND:${dtend} 
UID:${sys_id} 
DTSTAMP:${dtstamp} 
DESCRIPTION:${description} 
END:VEVENT 
END:VCALENDAR

 

Important: Please note I just want to add an appointment in calendar

 

Your help will be appreciated.

 

Thank you,

Mujtaba Ahmed

 

1 ACCEPTED SOLUTION

arya6
ServiceNow Employee
ServiceNow Employee

Hi Mujtaba,

 

You have got the .ics attachment out without a hitch and as the mail client clearly indicates the issue lies with the file itself.

 

The mail client cannot parse the .ics file, the difficulty with these files is that they are notoriously difficult to debug, but you can make use of one of the many online ical validators to check your file.

 

I think the issues lies with one of the mail script variables, likely the format of the value when included in the file.

 

Make sure you try this with hard-coded values first by removing all mail_script variables. For example, instead of "${dtstart}" do "DTSTART:20190101T070000", again this will help you narrow-down the issue more quickly.

 

Hope that helps,

Arya

View solution in original post

7 REPLIES 7

arya6
ServiceNow Employee
ServiceNow Employee

I am glad it's working Mujtaba!

thomas_wright1
Giga Contributor

So I'm curious, what if you want to build out a custom html body?  You cannot map that?  And what does your notification look like, do you have a value in the template field and something in the message or html body fields on the notification or is everything done in a template? 

 

Yeah for some reason custom html body doesn't work.

please see for more info: https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/notification/reference/r_CalendarIntegration.html

Once  template is created you can assign this to your email notification and I don't remember now but you can add message to email body.

below is my template

find_real_file.png

 

and this is my email notification:

find_real_file.png