appointment::get-by-globalid
Use of the appointment::get-by-globalid command
appointment = [[self commandContext]
runCommand:@"appointment::get-by-globalid",
@"gid", gid,
@"timeZone", timeZone,
nil];
- where:gid is an EOKeyGlobalId
timeZone is an NSTimeZone object.
If the query is successful you will recieve (in "appointment") an EOGenericRecord object containing:
EOGenericRecord: description Date attributes={
absence = "";
accessTeamId = 25850;
aptType = ill;
associatedContacts = "";
busyType = "";
calendarName = "";
cycleEndDate = "";
dateId = 28310;
dbStatus = inserted;
endDate = "2006-08-11 23:59:00 -0400";
evoReminder = "";
fbtype = "";
importance = "";
isAbsence = "";
isAttendance = "";
isConflictDisabled = 0;
keywords = "";
lastModified = "";
location = "";
notificationTime = "";
objectVersion = 1;
olReminder = "";
onlineMeeting = "";
ownerId = 10120;
parentDateId = "";
resourceNames = "North Conference Room";
sensitivity = "";
sourceUrl = "";
startDate = "2006-08-07 00:00:00 -0400";
title = "long appointment";
type = "";
writeAccessList = "";
}
Most importantly dateId is the primary key.