Skip to main content
EMS Software, LLC

GetEvents

Description

Returns a list of events

 

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

StartDate

Event Start Date

DateTime

EndDate

Event End Date

DateTime

EventName

Event Title (searches partial)

String

Location

Event Location (Searches partial)

String

Calendars

Calendars to search. (null value = all calendars)

Interger Array

EventTypes

EventTypes to search. (null value = all eventtypes)

Integer Array

UDQAnswer

UDQ Answer (text or list)

String

 

Response Elements

Name

Description

Type

EventDetailID

Event Detail ID

Integer

EventID

Event ID

Integer

Title

Event Title

String

Description

Event Description

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

TimeEventEnds

Time Event Ends

DateTime

IsAllDayEvent

Is Event All Day

Boolean

IsTimedEvent

Is Event a timed event

Boolean

EventTypeID

Event Type ID

Integer

EventTypeName

Event Type Name

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

 

Sample Code

private void GetEvents()

 {

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

        

       svcMCAPI.ArrayOfInt  calendars = new svcMCAPI.ArrayOfInt();        calendars.Add(12);        calendars.Add(14);

 

    

       svcMCAPI.ArrayOfInt  eventTypes = new svcMCAPI.ArrayOfInt();        eventTypes.Add(4);

 

       StringReader sr = new StringReader(svc.GetEvents("username", "pwd", DateTime.Now.AddDays(-5),      DateTime.Now.AddDays(5), "", "", calendars, eventTypes));        

 

      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

<Events>

 <Data>

    <EventDetailID>155609</EventDetailID>

    <EventID>23173</EventID>

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

    <Description />

    <Location>RM B</Location>

    <Canceled>false</Canceled>

    <NoEndTime>false</NoEndTime>

    <Priority>2</Priority>

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

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

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

    <IsAllDayEvent>false</IsAllDayEvent>

    <IsTimedEvent>true</IsTimedEvent>

    <EventTypeID>111</EventTypeID>

    <EventTypeName>Conference</EventTypeName>

    <ContactName>Tester 1</ContactName>

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

    <IsReOccurring>true</IsReOccurring>

    <IsOnMultipleCalendars>false</IsOnMultipleCalendars>

    <BookingID>61157</BookingID>

    <ReservationID>3609</ReservationID>

    <ConnectorID>0</ConnectorID>

    <HideContactName>false</HideContactName>

    <HideContactEmail>false</HideContactEmail>

    <HideContactPhone>false</HideContactPhone>

    <EventUpdatedBy>Connector Service</EventUpdatedBy>

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

    <EventDetailUpdatedBy>dbo</EventDetailUpdatedBy>

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

  </Data>

</Events>