- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2018 02:23 PM
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:
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
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2018 07:57 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2018 07:23 AM
I am glad it's working Mujtaba!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2018 09:55 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2018 02:44 PM
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
and this is my email notification: