python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

Need help with occupation setting

Open gynl opened this issue 2 years ago • 1 comments

Hi,

I'm relatively new to the python world...and therefore to using O365. My question will probably seem trivial to many of you, but I'm blocked and need some help.

I'm trying to add events to the calendar and want some to appear as "free". I found in the documentation the function my_event.show_as(***) and I know that you have to put an enum "O365.calendar.EventShowAs" in it. But on each attempt I get an error 'eventShowAs' object is not callable.

Someone can help me ? What should I put in place of ***.

Thanks very much.

gynl avatar Mar 29 '22 20:03 gynl

This is more related on to how to use python Enums but:

You can use the Enum value or the Enum itself:

event.show_as("free")

or

event.show_as(EventShowAs.Free)

alejcas avatar Mar 31 '22 11:03 alejcas