how do I get (and change) contacts.reminderset by code

  • Thread starter Thread starter Michael.Kensy
  • Start date Start date
M

Michael.Kensy

Hi,

how do I get (and change) contacts.reminderset by code. As I don't use
englisch version of OL I don't know if I do search for matching property.
What I'am looking for is the value that is changed by the red-flag-button of
a contacts (or explorers) commandbar.

What I want to do...
I developed a custom task and a custom appointment form. In use both will be
linked to one or more contacts. I would like to get a message when users do
link a red flaged contact ...

I do use ol.xp SP1

Michael
 
You must use CDO or Redemption for this, since the Outlook object model does not contain the necessary properties. See http://www.cdolive.com/cdo10.htm for details on the relevant contact property tags.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
To add a tip to what Sue said, any contacts property tags you need
that aren't listed at CDOLive can be gotten from the equivalent
property tags for Task items. The prop tags for the reminder settings
for mail, task and contacts are identical. Only appointments are
different.



You must use CDO or Redemption for this, since the Outlook object
model does not contain the necessary properties. See
http://www.cdolive.com/cdo10.htm for details on the relevant contact
property tags.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Hi Sue,
hi Ken,

sorry I'am too stupid ...
You must use CDO or Redemption for this, since the Outlook object
model does not contain the necessary properties. See
http://www.cdolive.com/cdo10.htm for details on the relevant contact
property tags.

I would like to inform users of my task form when they do link red flaged
contacts ... that's the code I'am using now to get the value of reminderset:
***
Set colCDOMessages = gobjCDOContactFolder.Messages
For I = 1 To myItem.Links.Count
For Each objCDOMessage In colCDOMessages
If objCDOMessage.ID = myItem.Links.Item(I).Item.EntryID Then
blnValue =
objCDOMessage("{0820060000000000C000000000000046}0x8503") '???
End If
Next
Next
***

objCDOMessage always points to the matching contact but blnValue don't get
the value of reminderset but subject (or something else). What do I do
wrong?

Thanx a lot
Michael
 
Try:

blnValue = _
objCDOMessage.Fields("{0820060000000000C000000000000046}0x8503").Value
 
Hi Ken,

thank you again ...
Try:

blnValue = _
objCDOMessage.Fields("{0820060000000000C000000000000046}0x8503").Value

you are right. I tried 'blnValue = objCDOMessage.Fields(&H10900003).Value'
because I need Flag_Status for what I want ...

But there is another problem now. I placed my code at the
PropertyChange-Event
'StatusOnCompletionRecipients' but ... the event is fired often and mostly
several times. As my code now brings up a MessageBox all the time I can't
use it this way. I would like to check linked contacts only if they got
changed (once). Do you know solution for also?
For now I placed a button on these forms to check flags status but it's not
perfect. Any idea?

thanx in advance
Michael
 
Back
Top