public static void GetXSchoolsByXCalendar(XPress xPress) { List <XSchoolType> xSchoolTypeList = xPress.GetXSchoolsByXCalendar(CALENDAR_REFID, OPAQUE_MARKER).Data; foreach (XSchoolType o in xSchoolTypeList) { Console.WriteLine(o.refId + " | " + o.schoolName + " | " + o.Metadata.SchoolYear); } }