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