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.
Thread starter Similar threads 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
O email properties in outlook 2010 Using Outlook 1
B E-MAILS -STATS / PROPERTIES /INFORMATION Using Outlook 1
J Outlook Folder Properties does not accept long URLs in the Home Page url entry field. Using Outlook 2
S Downloading outllok properties to Excel Using Outlook 1
A Hide properties in OWA and Outlook Exchange Server Administration 4
S Using form properties in rules (Outlook 2010) Using Outlook 1
C Cannot delete this folder. right-click the folder and click properties to check your permissions to Using Outlook 2
K OUTLOOK 2007 DELEGATE??? PROPERTIES/PERMISSIONS??? WHAT DO I NEED? Using Outlook 1
L Exchange 2010 Management Console crashes when opening exchange object properties. Exchange Server Administration 4
M Handling of Non-transmittable properties has changed? Exchange Server Administration 4
G The properties of 'email' have changed. Do you want to save changes to this message? I get this al Using Outlook 1
K View Mailbox Size without viewing properties Exchange Server Administration 3
W Change properties of folders in outlook Using Outlook 4
E Outlook 2010 - message properties Using Outlook 2
A How to show newly created extended properties using EWS Managed API in my outlook custom form contac Using Outlook 1
G What does 'received' mean in E-Mail properties box? 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
Similar threads


















































Top