Using EWS to determine if someone is out-of-office

  • Thread starter John Gordon
  • Start date Views 3,112
J

John Gordon

As part of an application that I am developing, I need to use Exchange

Web Services (EWS) to see if a user is available at a given point in time.

In a nutshell, the application needs to look at a user's calendar and see

if that user has a currently active appointment or meeting with the

out-of-office flag set.

I don't care if the user has a currently active out-of-office email

autoreply; I only care about calendar entries.

I do *not* want to use the free/busy flag. This application will only be

used for urgent communications, and I don't care if someone has a

garden-variety meeting scheduled.

The EWS queries will be sent from a special-purpose account created

specifically for this application to use. If needed, I can require that

all our users subscribe to this special-purpose user's calendar. Is that

enough to ensure that the calendars will be accessible?

I've found some related examples using C# and Java, but this project is

committed to using Python so it seems like I'll have to roll my own XML

message. Is FindItemSoapIn the appropriate message to use for this? Does

anyone have a full-fledged sample FindItemSoapIn message that looks for

a meeting at a certain date and time with the out-of-office flag set?

GetUserOofSettingsSoapIn seemed like what I wanted, but now I think that

it actually gets the user's out-of-office email autoreply, which isn't

what I want.

Any other help or suggestions are welcome.

Thanks,

John Gordon A is for Amy, who fell down the stairs

gordon@panix.com B is for Basil, assaulted by bears

-- Edward Gorey, "The Gashlycrumb Tinies"
 
J

John Gordon

In <h6hk9j$eqp$1@reader1.panix.com> John Gordon <gordon@panix.com> writes:


> I do *not* want to use the free/busy flag. This application will only be
> used for urgent communications, and I don't care if someone has a
> garden-variety meeting scheduled.


I think I may be mistaken here. Does the free/busy flag contain all four

states (free, tentative, busy, out of office)? If so, then I do want to

use it.

John Gordon A is for Amy, who fell down the stairs

gordon@panix.com B is for Basil, assaulted by bears

-- Edward Gorey, "The Gashlycrumb Tinies"
 
L

Lee Derbyshire [MVP]

"John Gordon" <gordon@panix.com> wrote in message

news:h6hk9j$eqp$1@reader1.panix.com...
> As part of an application that I am developing, I need to use Exchange
> Web Services (EWS) to see if a user is available at a given point in time.

> In a nutshell, the application needs to look at a user's calendar and see
> if that user has a currently active appointment or meeting with the
> out-of-office flag set.

> I don't care if the user has a currently active out-of-office email
> autoreply; I only care about calendar entries.

> I do *not* want to use the free/busy flag. This application will only be
> used for urgent communications, and I don't care if someone has a
> garden-variety meeting scheduled.

> The EWS queries will be sent from a special-purpose account created
> specifically for this application to use. If needed, I can require that
> all our users subscribe to this special-purpose user's calendar. Is that
> enough to ensure that the calendars will be accessible?

> I've found some related examples using C# and Java, but this project is
> committed to using Python so it seems like I'll have to roll my own XML
> message. Is FindItemSoapIn the appropriate message to use for this? Does
> anyone have a full-fledged sample FindItemSoapIn message that looks for
> a meeting at a certain date and time with the out-of-office flag set?

> GetUserOofSettingsSoapIn seemed like what I wanted, but now I think that
> it actually gets the user's out-of-office email autoreply, which isn't
> what I want.

> Any other help or suggestions are welcome.

> Thanks,

> > John Gordon A is for Amy, who fell down the stairs
> gordon@panix.com B is for Basil, assaulted by bears
> -- Edward Gorey, "The Gashlycrumb Tinies"


Have you tried GetUserOofSettingsRequest ?

Lee.

 
J

John Gordon

In <u5p90MZIKHA.4204@TK2MSFTNGP02.phx.gbl> "Lee Derbyshire [MVP]" <> writes:


> Have you tried GetUserOofSettingsRequest ?


I haven't, because as far as I can tell that command is used for

out-of-office email autoreplies, not for calendar events.

But if I'm wrong, please enlighten me!

John Gordon A is for Amy, who fell down the stairs

gordon@panix.com B is for Basil, assaulted by bears

-- Edward Gorey, "The Gashlycrumb Tinies"
 
L

Lee Derbyshire [MVP]

You're right, I just tried it here, and OOO Calendar entries don't affect

the current OOO status (I didn't know that before). I guess you'll have to

do a FindItem in the user's Calendar folder for any items that have a start

time less than the current time, an end time greater than the current time

(the CalendarView makes this easier), and a calendar:LegacyFreeBusyStatus

value of OOF .

"John Gordon" <gordon@panix.com> wrote in message

news:h6jmjm$4n0$1@reader1.panix.com...
> In <u5p90MZIKHA.4204@TK2MSFTNGP02.phx.gbl> "Lee Derbyshire [MVP]" <email
> a@t leederbyshire d.0.t c.0.m> writes:
>
> > Have you tried GetUserOofSettingsRequest ?


> I haven't, because as far as I can tell that command is used for
> out-of-office email autoreplies, not for calendar events.

> But if I'm wrong, please enlighten me!

> > John Gordon A is for Amy, who fell down the stairs
> gordon@panix.com B is for Basil, assaulted by bears
> -- Edward Gorey, "The Gashlycrumb Tinies"
>
 
Top