Page 1 of 1

Outlook Calendar move Appointment using MAPI

Posted: Mon Dec 21, 2020 10:03 pm
by AUGE_OHR
hi,

now i want to move a existing Appointment to other place.

i need some "Filter" and a Unique "Key" which normal is EVENTID ... but that "Key" is not good "readable"
i use "CreationTime" YYYYMMDDHHMMSS

Code: Select all

      cFilter := "[CreationTime] >='" + cStart + "' and [CreationTime] <= '" + cEnd + "'"
but there is another Problem :
"Filter" only accept "DateFormat" (German DD.MM.YYYY) and HH:MM ... NO Seconds :o

so i need to compare Result if Seconds -+3 match

Code: Select all

         IF SUBSTR( cStringStart, 1, 14 ) >= SUBSTR( LTRIM( STR( ROUND( VAL( cDBFCreDate ), 0 ) ) ), 1, 14 ) .OR. ;
            SUBSTR( cStringStart, 1, 14 ) <= SUBSTR( LTRIM( STR( ROUND( VAL( cDBFCreDate ) + 3, 0 ) ) ), 1, 14 )
MAPIMOVE.ZIP
(1.49 KiB) Downloaded 117 times