Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Create New Event with Attendee List
I'm trying to add a new event that includes an attendee list but I cannot get the syntax correct. If anyone has some sample code in either VB or c# I would really appreciate it.
Dim nsAttendeeList As New CalendarEventAttendeeList
Dim nsAttendee As New CalendarEventAttendee
nsAttendee.attendee = recEmployee
nsAttendee.sendEmail = False
nsAttendee.sendEmailSpecified = True
nsAttendee.attendance = CalendarEventAttendeeAttendance._required
nsAttendee.attendanceSpecified = True
nsAttendee.attendee.name = dstData.DataSets(intCounter).Fields("strRCNam").FieldValue
nsAttendee.attendee.type = RecordType.employee
nsAttendee.attendee.typeSpecified = True
nsAttendee.attendee.internalId = recEmployee.internalId
'********** This line is incorrect. I need to attach the nsAttendee to the
'********** attendeelist but I have no idea how to.