The CreatorCon Call for Content is officially open! Get started here.

How do you extract DTSTART...

verda
Mega Expert

In the inbound action Process CAB meeting invitation replies, the attendee list is extracted by dissecting  the ical content as follows:

var attachmentContent = new GlideSysAttachment().getContent(sysAttachmentsGr);
var attendeeMatch = attachmentContent.match(/ATTENDEE;.*PARTSTAT=.*;/);
var attendanceReply = attendeeMatch.toString().match(/PARTSTAT=(.*);/);

from the following list which is the  attachmentContent how would you extract the DTSTART:

1 REPLY 1

Rakesh Mamidi
ServiceNow Employee
ServiceNow Employee

Hi,

Are you looking to extract following data ?

DTSTART;TZID=Eastern Standard Time:20200722T080000
DTEND;TZID=Eastern Standard Time:20200722T083000

The DTSTART and DTEND entries are a combination of the date and time in the format, YYYYMMDDThhmmssZ, where YYYY=year, MM=month, DD=day of the month, T=start time character, hh=hour, mm=minutes, ss=seconds, Z=end character. This string expresses the time as Greenwich Mean Time (GMT), on a 24-hour clock so must be adjusted to your time zone.

Whereas TZID is the timezone ID.

Regards,

Rakesh Mamidi

Mark this answer as correct/helpful - if it solves/helps