Comments on: Sending iCalendar Invites from any Task table https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/ ServiceNow Consulting Scripting Administration Development Thu, 07 Mar 2024 19:30:55 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jeff Shirling https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7700 Tue, 03 Nov 2015 15:56:47 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7700 In reply to Craig Schotke.

If it is sending from now until 30 minutes later, the name of your sys_impex_map record is wrong. It HAS to be
icalendar.{table_name} so therefore there can only be one record per table in the sys_impex_map table.

Hope this helps!

]]>
By: Craig Schotke https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7699 Mon, 12 Jan 2015 18:39:06 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7699 In reply to Scott Williams.

I was having the same issue and found it was due to not naming my Import Export Map correctly. The mapping must be named “icalendar.” or it will not work. I found this in http://wiki.servicenow.com/index.php?title=Email_Templates#Creating_iCalendar_Invitations_for_Custom_Tables.

Hopefully this helps some of you having the same issue.

]]>
By: Nitin https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7698 Tue, 04 Nov 2014 07:57:09 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7698 I have customized meeting invitations for change to be sent to watchlist as well. Can anyone tell me how the Required person is selected for the invitation sent. I recently found a scenario where some one else was in Required field.

]]>
By: Senthil https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7697 Thu, 02 Oct 2014 13:29:53 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7697 In reply to Valor.

Hi Valor,

Please share the fix, i having the same issue which the event start time is request time date and end date is always is30 mins later.
Actually i tried to send the calendar notification based on the request variable by using the sc_req_variables. i created import export mapping in sc_req_variables mapping field as question

Thanks
Senthil.R

]]>
By: Ben Hollifield https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7696 Tue, 09 Sep 2014 02:39:49 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7696 I’ve been struggling with iCalendar integrations on custom (non-task) tables tonight myself. It appears the wiki has been updated with more specific working instructions, and the naming of the sys_impex_map entry is crucial to getting the calendar time correct. On Dublin/Eureka, the listed instructions should work correctly, according to my tests – follow them closely!

http://wiki.servicenow.com/index.php?title=Email_Templates#Creating_iCalendar_Invitations_for_Custom_Tables

]]>
By: Nancy https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7695 Thu, 14 Aug 2014 20:24:23 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7695 In reply to Bas Tax.

I’m having the same issue. Did you ever come up with a solution?

]]>
By: Rita M https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7694 Mon, 19 May 2014 18:59:18 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7694 I’m attempting to set up a iCalendar invite in an email message purely within the Email Notification record (aka WITHOUT using the email template). This is NECESSARY if you want to send 2 different meeting invites from the same table – you can only use the method suggested on the ServiceNow wiki if you have a single meeting time per table, as there can be only one DTSTART and DTEND auto-mapped per table.

I was hoping to use a mail script to do this, which needs to be done in the email notification (since mail scripts don’t work in templates).
However, I can’t get a correct iCalendar invite to go out using just the email notification, even when I hard-code everything in it to a plain-text (non-scripted) calendar invite! It says in this article that it’s possible…

Email notification Options:
Type is Meeting Invitation, the content type is HTML and plain text, and I’m omitting the watermark.

Every time the iCalendar email I attempted to create is sent out, the message body is blank.
(In WORKING iCalendar emails using the email template method, the message body is NOT blank.)

We’re running Calgary.

Has ANYONE managed to get an iCalendar invite sent out correctly if just using the email notification and NOT using an email template?

Thanks!
-Rita

]]>
By: Bas Tax https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7693 Fri, 07 Feb 2014 12:57:45 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7693 Hi all, I’ve tried several scenarios today:
1. Send ‘out of the box’ Change Request notification with standard field mapping => OK
2. Send ‘out of the box’ Change Request notification using custom date/time fields (u_start & u_end) on the CR record => OK
3. Send new Incident notification using custom date/time fields (u_start & u_end) on the CR record => OK
4. Create custom table, which extends the Task table, having custom fields (u_start & u_end) => NOT OK
5. Create custom table, which does not the Task table, having custom fields (u_start & u_end) => NOT OK

I’ve used the “Insert & Stay” approach to exactly copy all required records (sys_impex mapping, notification, template) and so far I can conclude that this functionality is not working for custom tables. I will try to get some help from ServiceNow; hopefully they can help us out.

Regards,
Bas

]]>
By: Johnny Stone III https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7692 Tue, 04 Feb 2014 22:24:26 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7692 The issue with time can be resolved by mapping a beginning and end time.

In our instance I created date fields on the Task Form named Begin Time and Date and End Time and Date.

Navigated to sys_impex_map.list
Mapped Name: icalendar.sc_task
Mapped Table: Catalog Task
Type: icalendar
Mapped u_end_time_and_date to external name dtend on the sc_task Table.
Mapped u_begin_time_and_date to external name dtstart on the sc_task Table.

Here’s the rest of my work.

Business Rule Created (upon Insert and Update on the Catalog Task Table. Named icalendar.sc_task)
if (current.u_begin_time_and_date.changes() || current.u_end_time_and_date.changes() || current.assigned_to.changes()) {
if (!current.u_begin_time_and_date.nil() && !current.u_end_time_and_date.nil() && !current.assigned_to.nil()) {
gs.eventQueue(“icalender.sc_task.inserted”, current, current.assigned_to, previous.assigned_to);
}

// Remove from previous assigned to, due to assigned to changing
if (!previous.assigned_to.nil()) {
if (!current.assigned_to.nil() && current.assigned_to.changes() &&
(!previous.u_begin_time_and_date.nil() && !u_end_time_and_date.nil())) {
gs.eventQueue(“icalender.sc_task.updated”, current, current.assigned_to, previous.assigned_to);
}
}
// Remove old calendar from current assigned to, due to date changing
else if (!current.assigned_to.nil()) {
if ((u_begin_time_and_date.changes() && !previous.u_end_time_and_date.nil()) ||
(current.u_end_time_and_date.changes() && !previous.u_end_time_and_date.nil())) {
gs.eventQueue(“icalender.sc_task.notify.remove”, current, current.assigned_to, current.assigned_to);
}
}

}

Event Registry Entries Created on the Catalog Task Table named icalender.sc_task.inserted, icalender.sc_task.updated and icalender.sc_task.remove

Email Template for New Invite and when time changes it sends an updated invite…
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:company@service-now.com
ORGANIZER:MAILTO:company@service-now.com
DTSTART:${dtstart}
DTEND:${dtend}
LOCATION:${location}
TRANSP:OPAQUE
SEQUENCE:${sys_mod_count}
UID:${sys_id}
DTSTAMP:${dtstamp}
DESCRIPTION:${description}
SUMMARY:${summary}
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC

Template for Cancel
BEGIN:VCALENDAR
PRODID:-//Service-now.com//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
ATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=FALSE:MAILTO:wagged@service-now.com
ORGANIZER:MAILTO:wagged@service-now.com
DTSTART:${dtstart}
DTEND:${dtend}
LOCATION:${location}
TRANSP:OPAQUE
SEQUENCE:${sys_mod_count}
UID:${sys_id}
DTSTAMP:${dtstamp}
DESCRIPTION:${description}
SUMMARY:${summary}
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
STATUS:CANCELLED
END:VEVENT
END:VCALENDAR

Triggered Email Notifications using insert of time on said fields on form, update to fields and when some chooses cancel as the category.

]]>
By: Scott Williams https://servicenowguru.com/email-notifications-system-definition/sending-calendar-invites-task-table/#comment-7691 Tue, 04 Feb 2014 12:57:01 +0000 https://servicenowguru.wpengine.com/?p=1707#comment-7691 In reply to Mark Stanger.

Any update on this? I am having the same issue in which the event start time is the time the email was sent and the end time is always 30 min later. Please Help

]]>