Has anyone managed to get HTML formatting to work on Calendar Invites?

awright
Kilo Expert

When we make Meeting Invitation type emails, we would like to be able to put HTML formatting into the text that comes through in the description, but servicenow always sets the message type to "text/calendar", meaning that HTML formatting for the description goes out the window. (I have tried using altrep on our calendar template but to no avail.

 

I was thinking maybe that we should try and send these as multipart/mixed email notifications and set the content type in HTML before each part, but I am not certain it is the best way of going about it.

 

Has anyone managed to get HTML formatting to work on Calendar Invites?

1 ACCEPTED SOLUTION

awright
Kilo Expert

Hi, sorry if this is a little late.



What we ended up doing was adding in "X-ALT-DESC;FMTTYPE=text/html:" as an alternative description (ALTREP didn't seem to do anything useful), then formatted the HTML string to all fit on to a single line.



An additional thing to watch for is to make sure that the original plain text Description has no HTML tags in it for users that use plaintext only (though all plaintext things like ipads seem to do is interpret the HTML version anyway).


View solution in original post

11 REPLIES 11

Hi,

I would like to know where in Service Now instance do I need to update "X-ALT-DESC;FMTTYPE=text/html"?

I want calendar invite in html format.

Thanks in advance.

guptashalini041
Kilo Contributor

Hi,

Where to use code "X-ALT-DESC;FMTTYPE=text/html" in servicenow. Can you please share the sample code snippet.

Thanks

ravigupta
Mega Contributor

Hi Experts,

Where to use code "X-ALT-DESC;FMTTYPE=text/html" in ServiceNow. Can you please share the sample code snippet.

Thanks

Ravi Gupta

Hi! This is a really helpful thread, and so is this article: ServiceNow Calendar Invites

I was able to get it work by using the X-ALT-DESC tag, as shown below:

  1. Make sure the email notification is of "Type": "Meeting Invitation"
  2. Also, make sure the contents of "Message HTML" field is blank
  3. On the email template record, add the following as a new line right after the "DISCRIPTION" tag under  "Message text" field:

    X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head><title></title></head><body><SPAN LANG="en-us"><Font face="Times New Roman">I simply <b> want some bold </b> here 555</font></span></body></html>

 

Example:

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 email address

LOCATION:meeting location

DTSTART:${dtstart}

DTEND:${dtend}

UID:${sys_id}

DTSTAMP:${dtstamp}

DESCRIPTION:meeting body

X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head><title></title></head><body><SPAN LANG="en-us"><Font face="Times New Roman">I simply <b> want some bold </b> here 555</font></span></body></html>

SUMMARY:subject line

X-MICROSOFT-CDO-BUSYSTATUS:BUSY

X-MICROSOFT-DISALLOW-COUNTER:TRUE

X-SNSYSID:${sys_id}

BEGIN:VALARM

TRIGGER:-PT15M

ACTION:DISPLAY

DESCRIPTION:Reminder

END:VALARM

END:VEVENT

END:VCALENDAR

Hi,

 

Thanks for replying. I updated the email template code and it's showing html content. 

I want to show the variables and their values of catalog item in tabular format when calendar invite sent.

How can I achieve this? please assist.

Thanks

Ravi Gupta