Skip to content

Performing scheduling actions on calendar entries

Chapter 11-3
Performing scheduling actions on calendar entries

Performing scheduling actions on calendar entries

Calendar entries that represent meeting data can be acted upon using the CalEntryAction method (similar to deleting). Unlike CalUpdateAction, CalEntryAction can act on an entire series, a particular instance, or a range (this and future).

For participants, this method can be used to change response status (accept, decline, counter, delegate, etc) or request information from the meeting organizer.

  • Decline
/*

code snippet


STATUS error = NOERROR;
char pszICalenderUID[] = "20121120T172345Z-JJU9O5@example.com";
DWORD dwAction = CAL_PROCESS_DECLINE;
DWORD dwRange = 0;
PEXT_CALACTION_DATA pExtActionInfo = NULL;

error = CalEntryAction(hDB, pszICalenderUID, NULL, dwAction, dwRange, "decline", pExtActionInfo, 0, NULL);
*/

For meeting organizers, this can be used to cancel a meeting.

  • Cancle
/*

code snippet


STATUS error = NOERROR;
char pszICalenderUID[] = "20121120T172345Z-JJU9O5@example.com";
DWORD dwAction = CAL_PROCESS_SMARTREMOVE;
DWORD dwRange = 0;
PEXT_CALACTION_DATA pExtActionInfo = NULL;

error = CalEntryAction(hDB, pszICalenderUID, NULL, dwAction, dwRange, "decline", pExtActionInfo, 0, NULL);
*/ ---