HOW TO GET PROPERTIES FOLLOW UP

Status
Not open for further replies.

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,
I need to get properties from an Outlook Mailitem to know if there is a "follow up" (task for me) on this Email and if right i want to get reminder details.

Code:
Sub baba_Active_item()
    Dim oItem As Object
    Set oItem = ActiveInspector.CurrentItem
       
    Dim pa As Outlook.PropertyAccessor
    Const TASK_REMINDER_TIME = "http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x00008502"
        Set pa = oItem.PropertyAccessor
MsgBox " Reminder =" _
          & pa.GetProperty(TASK_REMINDER_TIME)
         
End Sub
= error "-2147221246 (80040102)" Cannot get property..
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Why not just check the .IsMarkedAsTask value? If it's true, the item is flagged. Use .ReminderTime to get the reminder time.

Code:
Sub baba_Active_item()

  Dim oItem As Object
  Set oItem = ActiveInspector.CurrentItem

  If oItem.IsMarkedAsTask = True Then
       MsgBox " Reminder = " & oItem.ReminderTime
  End If

End Sub
 

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Because i want to test it before is sent, (=oItem.IsMarkedAsTask = False )
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
AFAIK, you can't read the reminder and flag property until after the message is sent, even using propertyaccessor.
 

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Thank you for your responses and your time.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
U Outbox Message Stuck after reading some MailItem Properties with VBA Outlook VBA and Custom Forms 1
M OUTLOOK 2013 CONTACT PROPERTIES Using Outlook 0
Werewolf Workaround for the missing Activities tab in Contact Folder Properties in Outlook 2010? Using Outlook 2
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
S how to set user properties to a newly created appointment Outlook VBA and Custom Forms 12
B "The properties of the message…have been changed" error Outlook VBA and Custom Forms 1
O No Internet Header Properties Using Outlook 2
K how to Access Outlook Contact Properties Using Outlook 1
H Facility Mangaement using Exchange Resource Mailbox, Conflicts properties Using Outlook 5
P Changing File As Properties Using Outlook 7
A AutoArchive diapered from folder properties in Outlook 2007 Using Outlook 2
B Why don't my 'Contacts' properties stay?, (Outlook 2010 - Vista). Using Outlook 3
C 0x800CC0D "Can not find the email server. Verify the server information in your account properties" Using Outlook 4
G E2k7 | After changing OAB on database properties, how much time it will take for Outlook 2007 to download new OAB Using Outlook 2
B junk email folder properties synchronization tab missing ..outlook 2007 client Using Outlook 3
B junk email folder properties synchronization tab missing outlook 2007 Using Outlook 1
A Creating personal folders on outlook 2010 and setting properties. Using Outlook 3
B In Contact Properties of Outlook 2010, it does not allow me to check the check box " Show this folde Using Outlook 2
B Re: In Contact Properties of Outlook 2010, it does not allow me to check the check box " Show this f Using Outlook 2
J Outlook Folder Properties does not accept long URLs in the Home Page url entry field. Using Outlook 2
B Custom Properties or Reply Outlook VBA and Custom Forms 7
A Expected behauvior when modifying properties? Outlook 2003. Outlook VBA and Custom Forms 3
T Custom Contact Forms and User Properties Outlook VBA and Custom Forms 2
K Programmatically accessing Outlook properties Outlook VBA and Custom Forms 3
E Properties added to MailItem in ItemSend event visible to recipien Outlook VBA and Custom Forms 1
P Setting combobox properties from Outlook 2007 Add-in Outlook VBA and Custom Forms 9
W Displaying custom properties of a PDF DocumentItem Outlook VBA and Custom Forms 3
E Some question if I understand user properties correct Outlook VBA and Custom Forms 3
E Some question if I understand user properties correct Outlook VBA and Custom Forms 3
E User Properties vs. Hidden attachment Outlook VBA and Custom Forms 2
E User Properties vs. Hidden attachment Outlook VBA and Custom Forms 2
M user-defined properties in printed emails? Outlook VBA and Custom Forms 8
T Propagating User Properties to Recipients Outlook VBA and Custom Forms 1
D Appointment item properties Outlook VBA and Custom Forms 5
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
T Outlook custom properties Outlook VBA and Custom Forms 5
R Follow up button doesn't working neither the reminders in BCM BCM (Business Contact Manager) 0
A Flag Message for Follow Up after sending Outlook VBA and Custom Forms 1
V Changing default date for task follow-up buttons Using Outlook 2
M Setting flag follow up for next business day Outlook VBA and Custom Forms 1
O Outlook 2016 follow-up flags--how can I add dates? Using Outlook 1
G Flag for Follow Up with a customized duetime Using Outlook 1
G Follow up and Using Outlook 1
K check for sender, follow to my personal adress and delete the sent folder. Outlook VBA and Custom Forms 1
D No Follow up when making new form Outlook VBA and Custom Forms 2
rc4524 Create auto follow-up reminder email for already sent messages Outlook VBA and Custom Forms 1
smokiibear follow-up flag fro Tasks in Outlook 2010 Using Outlook 5
N Adding a note to a e-mail which has been marked as follow up Using Outlook 1
A Post Form Follow Up Flag Using Outlook 4
J How to set a flag to follow up using VBA for outlook 2003 Using Outlook 10

Similar threads

Top