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
and
i get twice the value 2147483647
my code
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
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
1 |
print ( len (comobject before restrict)) |
1 |
print ( len (comobject after restrict)) |
my code
1 2 3 4 5 6 7 8 9 10 11 |
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)) |
because, the result of this is afterwards handeled by an for loop an this one never starts, so the comobject seems to be empty