Skip to main content
EMS Software, LLC

GetEvent

Description

Returns event information for a specific event date

 

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

EventDetailID

Event Detail ID for the specific event date

Integer

 

Response Elements

Name

Description

Type

EventDetailID

Event Detail ID

Integer

EventID

Event ID

Integer

Title

Event Title

String

TitleURl

Event Title Url

String

Description

Event Description

String

Department

Event Department

String

Location

Event Location

String

LocationUrl

Event Location Url

String

Canceled

Event Canceled

Boolean

NoEndTime

Event has no end time

Boolean

Priority

Event priority 1=High, 2=Medium, 3=Low

Interger

EventDate

Event Date

DateTime

TimeEventStart

Time Event Starts

DateTime

TimeEventEnd

Time Event Ends

DateTime

PostDate

Date Event Posts on the calendar

DateTime

TimezoneID

TimezoneID

Integer

TimezoneAbbr

Timezone abbreviation

String

IsAllDayEvent

Is Event All Day

Boolean

IsTimedEvent

Is Event a timed event

Boolean

calendarName

Calendar Name

String

EventTypeID

Event Type ID

Integer

EventTypeName

Event Type Name

String

EventTypeColor

Color of the Event Type

String

ContactName

Event Contact Name

String

ContactEmail

Event Contact Email

String

ContactPhone

Event Contact Phone

String

IsReOccurring

Event has multiple dates

Boolean

IsOnMultipleCalendars

Event is on multiple calendars

Boolean

BookingID

EMS Booking ID

Integer

ReservationID

EMS Reservation ID

Integer

ConnectorID

MC Connector ID

Integer

HideContactName

Hide Contact Name

Boolean

HideContactEmail

Hide Contact Email

Boolean

HideContactPhone

Hide Contact Phone

Boolean

CustomFieldLabel1

Custom Field Label 1

String

CustomFieldDescription1

Custom Field Description 1

String

CustomUrl1

Custom Url 1

String

CustomFieldLabel2

Custom Field Label 2

String

CustomFieldDescription2

Custom Field Description 2

String

CustomUrl2

Custom Url 2

String

EventUpdatedBy

Last Event Updated By

String

EventUpdatedDate

Last Event  Updated Date

DateTime

EventDetailUpdatedBy

Last Event Detail Updated By

String

EventDetailUpdatedDate

Last Event Detail Updated Date

DateTime

ImageId

Event Image ID

Integer

FileExtension

Event Image file extension

String

ImageName

Event Image Name

String

Image

Event Image

Base64String

 

Sample Code

private void GetEvent()

 {

        MCAPI.MCAPIService svc = new MCAPI.MCAPIService();         svc.Url = "http://yourserver/MCAPI/MCAPIService.asmx?WSDL";

        

       int eventDetailId = 126;

       StringReader sr = new StringReader(svc.GetEvents("username", "pwd”, eventDetailId));       

      

       DataSet ds = new DataSet();

        

        System.Xml.XmlDocument doc = new System.Xml.XmlDocument();

        doc.LoadXml(sr.ReadToEnd());

        ds.ReadXml(new System.Xml.XmlNodeReader(doc));

  }

 

Example Response

<Event>

  <Data>

    <EventDetailID>155609</EventDetailID>

    <EventID>23173</EventID>

    <Title>Test Event (TT) 240 month recurrence</Title>

    <TitleUrl />

    <Description />

    <Department>Test Group</Department>

    <Location>RM B</Location>

    <Canceled>false</Canceled>

    <NoEndTime>false</NoEndTime>

    <StartDate>2011-04-01T00:00:00</StartDate>

    <Priority>2</Priority>

    <TimeEventStart>2011-04-01T10:00:00</TimeEventStart>

    <TimeEventEnd>2011-04-01T11:00:00</TimeEventEnd>

    <IsAllDayEvent>false</IsAllDayEvent>

    <IsTimedEvent>true</IsTimedEvent>

    <TimeZoneID>68</TimeZoneID>

    <ContactName>Tester 1</ContactName>

    <ContactEmail>test@dea.com</ContactEmail>

    <ContactPhone>0123456789</ContactPhone>

    <IsOnMultipleCalendars>false</IsOnMultipleCalendars>

    <IsReOccurring>true</IsReOccurring>

    <CustomFieldLabel1 />

    <CustomFieldDescription1 />

    <CustomURL1 />

    <CustomFieldLabel2 />

    <CustomFieldDescription2 />

    <CustomURL2 />

    <EventTypeID>111</EventTypeID>

    <EventTypeName>Conference</EventTypeName>

    <EventTypeColor>#CC00CC</EventTypeColor>

    <BookingID>61157</BookingID>

    <ReservationID>3609</ReservationID>

    <Priority1>2</Priority1>

    <HideContactName>false</HideContactName>

    <HideContactEmail>false</HideContactEmail>

    <HideContactPhone>false</HideContactPhone>

    <CalendarName>Cycling Club</CalendarName>

    <PostDate>2010-06-03T16:34:34.15</PostDate>

    <TimezoneAbbr>MT</TimezoneAbbr>

    <EventUpdatedBy>Connector Service</EventUpdatedBy>

    <EventUpdatedDate>2010-06-03T16:34:34.15</EventUpdatedDate>

    <EventDetailUpdatedBy>dbo</EventDetailUpdatedBy>

    <EventDetailUpdatedDate>2010-06-03T16:34:34.167</EventDetailUpdatedDate>

    <ImageId>0</ImageId>

    <FileExtension />

    <ImageName>Image</ImageName>

  </Data>

</Event>