K
Kristy
Hi
I need to get the 'title' name of the current item into a string so
that I can include it in a Word Template that summarises certain
MailItems. I now that it is usually just 'Message' but since it can
be changed I need to include it.
I can see it using Outlook Spy under HMTLEditor>DispHTMLDocument>title
but how do I return that info myself programmatically at run time?
I tried using HrGetOneProp like below but that didn't work... what am
I missing?
Set utils = CreateObject("Redemption.MAPIUtils")
Set MailItem = golApp.ActiveInspector.CurrentItem
PR_TITLE_PROP = utils.GetIDsFromNames(MailItem.MAPIOBJECT,
"{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}", "Title", True)
PR_TITLE_PROP = PR_CONTACTINFO_PROP + &H1E
TitleField = utils.HrGetOneProp(MailItem.MAPIOBJECT, PR_TITLE_PROP)
Thanks
Kris
I need to get the 'title' name of the current item into a string so
that I can include it in a Word Template that summarises certain
MailItems. I now that it is usually just 'Message' but since it can
be changed I need to include it.
I can see it using Outlook Spy under HMTLEditor>DispHTMLDocument>title
but how do I return that info myself programmatically at run time?
I tried using HrGetOneProp like below but that didn't work... what am
I missing?
Set utils = CreateObject("Redemption.MAPIUtils")
Set MailItem = golApp.ActiveInspector.CurrentItem
PR_TITLE_PROP = utils.GetIDsFromNames(MailItem.MAPIOBJECT,
"{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}", "Title", True)
PR_TITLE_PROP = PR_CONTACTINFO_PROP + &H1E
TitleField = utils.HrGetOneProp(MailItem.MAPIOBJECT, PR_TITLE_PROP)
Thanks
Kris