Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 67755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:18:34+00:00 2026-05-10T19:18:34+00:00

I’m trying to get all property names / values from an Outlook item. I

  • 0

I’m trying to get all property names / values from an Outlook item. I have custom properties in addition to the default outlook item properties. I’m using redemption to get around the Outlook warnings but I’m having some problems with the GetNamesFromIDs method on a Redemption.RDOMail Item….

I’m using my redemption session to get the message and trying to use the message to get the names of all the properties.

Dim rMessage as Redemption.RDOMail = _RDOSession.GetMessageFromID(EntryID, getPublicStoreID()) Dim propertyList As Redemption.PropList = someMessage.GetPropList(Nothing) For i As Integer = 1 To propertyList.Count + 1     Console.WriteLine(propertyList(i).ToString())     Console.WriteLine(someMessage.GetNamesFromIDs(________, propertyList(i))) Next 

I’m not totally sure what to pass in as the first parameter to getNamesFromIDs. The definition of GetNamesFromIDs is as follows:

GetNamesFromIDs(MAPIProp as Object, PropTag as Integer) As Redemption.NamedProperty 

I’m not totally sure what should be passed in as the MAPIProp object. I don’t see this property referenced in the documentation. http://www.dimastr.com/redemption/rdo/MAPIProp.htm#properties

Any help or insight would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:18:35+00:00Added an answer on May 10, 2026 at 7:18 pm

    I think I figured it out. I have used VBA only, so you need to ‘think around’ it’s limitations, it will follow the same scheme in VB.NET.

    The function signature is this:

    Function GetNamesFromIDs(MAPIProp As Unknown, PropTag As Long) As NamedProperty 

    As the first parameter it requires an object which supports the IUnknown interface. Looking at the Redemption docs it became clear that there is an interface named _MAPIProp, from which many other RDO objects are derived (IRDOMail is among them). So this must be the very RDOMail you are trying to get data out of.

    Knowing that, it needed only one other subtle hint from the docs to get it working:

    Given a prop tag (>= 0x80000000), returns the GUID and id of the named property.

    So property tag must be >= 0x80000000, this means it wont work for all properties, but just for the custom ones (I guess that is the distinction in this case, correct me if I’m wrong.) Passing in property tags not fulfilling this condition raises an error message (0x8000ffff ‘unexpected results’).

    Here is my code. It is VBA, so forgive me the Hex() blunder, as VBAs long integer overflows for numbers that big. I am sure you will get the picture.

    Sub GetNamesFromIds()    Dim rSession As New Redemption.RDOSession   Dim rMessage As Redemption.RDOMail   Dim PropertyList As Redemption.PropList   Dim PropTag As Long   Dim EntryId As String   Dim i As Integer    rSession.MAPIOBJECT = Application.Session.MAPIOBJECT    ' retrieve first random mail for this example '   EntryId = ActiveExplorer.CurrentFolder.Items(1).EntryId   Set rMessage = rSession.GetMessageFromID(EntryId)   Set PropertyList = rMessage.GetPropList(0)    For i = 1 To PropertyList.Count     PropTag = PropertyList(i)     If '0x' & Right('00000000' & Hex(PropTag), 8) > '0x80000000' Then       Debug.Print       If IsArray(rMessage.Fields(PropTag)) Then         Debug.Print Hex(PropTag), '(Array:', UBound(rMessage.Fields(PropTag)), 'items)'       Else         Debug.Print Hex(PropTag), '(', rMessage.Fields(PropTag), ')'       End If       Debug.Print '    GUID:', rMessage.GetNamesFromIds(rMessage, PropTag).GUID       Debug.Print '      ID:', rMessage.GetNamesFromIds(rMessage, PropTag).ID     End If   Next  End Sub 

    First snippet from the output:

    8041001E      (             urn:content-classes:message )     GUID:     {00020386-0000-0000-C000-000000000046}       ID:     content-class 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a view passing on information from a database: def serve_article(request, id): served_article
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.