Hi,
Are you talking about retrieving the event ID from a batch request after the
insertion is completed? Only after an event has been created then it will
have an event ID. After your batch request is executed, you can do the
following retrieve the inserted event(s) as a feed and access their details
(such as event ID) -
EventFeed batchResultFeed = (EventFeed) calendarService.Batch(batchFeed,
batchUrl);
//check the return values of the batch operations to make sure they all
worked.
//the insert operation should return a 201 and the rest should return
200
bool success = true;
foreach (EventEntry entry in batchResultFeed.Entries)
{
if (entry.BatchData.Status.Code != 200 &&
entry.BatchData.Status.Code != 201)
{
success = false;
Console.WriteLine("The batch operation with ID " +
entry.BatchData.Id + " failed.");
} else {
// you can now access the event details from the entry object
}
}
Hope it helps,
Austin
On Fri, Jul 4, 2008 at 5:06 PM, vc4u <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm doing a batch insert operation to INSERT Events into Google
> Calendar using .Net libraries.
>
> I want to know How can I Get the Inserted Event's EventID values? Do
> anyone know how to do this?
>
> Thanks.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---