May-13-2020, 06:45 PM
hello,
i am learning about comobject in python
but the internet seems not to have so many clear information about it
does somebody know a clear explanation or a tutorial about comobject?
my problem:
we are retrieving a buch of records from exchange
we seem to have data comming in
we use .restrict method
but when i do
my code
because, the result of this is afterwards handeled by an for loop an this one never starts, so the comobject seems to be empty
i am learning about comobject in python
but the internet seems not to have so many clear information about it
does somebody know a clear explanation or a tutorial about comobject?
my problem:
we are retrieving a buch of records from exchange
we seem to have data comming in
we use .restrict method
but when i do
print(len(comobject before restrict))and
print(len(comobject after restrict))i get twice the value 2147483647
my code
print(len(appointmentst)) ... begin = dt.date.today() ... print(begin) ... end = begin + dt.timedelta( ... days=7); ... print(end) ... restriction = "[Start] >= '" + begin.strftime("%m/%d/%Y") + ' 12:00 AM'"' AND [End] <= '" + end.strftime( ... "%m/%d/%Y") + ' 12:00 AM'"'" ... print(restriction) ... restrictedItems1 = appointmentst.Restrict(restriction) ... print(len(restrictedItems1))anyhow, how do i know what is in this comobject?
because, the result of this is afterwards handeled by an for loop an this one never starts, so the comobject seems to be empty