redemption MAPIUtils

Status
Not open for further replies.
V

V0xBTg

Hi,

I'm setting some custom properties using Redemption.MAPIUtils interface.

MessageItem interface is accessed from MAPIUtils and each property is set to

the mail message using HrSetOneProp() function.

The problem is that these properties are not available now. i need to

restart outlook for getting these values. I have checked the same using

Outlook Spy and it didn't show those properties. Once I restart outlook, it

shows all properties.

What is the issue? How do I resolve it?

I need to read those properties after setting it.

Thanks
 
I assume you saving the MessageItem?

You probably also need to alert Outlook that the item underlying the

MessageItem has changed. Usually we use a trick like this, where item would

be the item underlying the MessageItem object:

item.Subject = item.Subject

item.Save

That should be done after saving the MessageItem and releasing references to

it.

"WLAN" <WLAN> wrote in message

news:1F808BCE-60CB-4C6D-8C0E-03294FB636CE@microsoft.com...
> Hi,

> I'm setting some custom properties using Redemption.MAPIUtils interface.
> MessageItem interface is accessed from MAPIUtils and each property is set
> to
> the mail message using HrSetOneProp() function.

> The problem is that these properties are not available now. i need to
> restart outlook for getting these values. I have checked the same using
> Outlook Spy and it didn't show those properties. Once I restart outlook,
> it
> shows all properties.

> What is the issue? How do I resolve it?

> I need to read those properties after setting it.

> Thanks
>
 
Thanks Ken.

I'm calling messageItem.Save. But I'm not clear about 'alert outlook' part.
 
Outlook doesn't know about changes made to items using Extended MAPI, for

which Redemption is a wrapper (more or less). So until it's restarted or an

object is unloaded and re-loaded it doesn't know about changes you made.

That little hack of setting Subject equal to itself on the original Outlook

item and then saving that forces Outlook to re-read the MAPI properties and

become aware of your changes using Redemption.

"wlan" <wlan> wrote in message

news:B9D98C92-986A-4D26-BFB6-D1687BC15C41@microsoft.com...
> Thanks Ken.

> I'm calling messageItem.Save. But I'm not clear about 'alert outlook'
> part.

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Creating Redemption.MAPIUtils failed with Windows 7 x64 Outlook VBA and Custom Forms 5
A Edit subject - and change conversationTopic - using VBA and redemption Outlook VBA and Custom Forms 2
N Redemption VBA basics...something's missing Using Outlook 0
D Redemption? Need rapid pull of Outlook Contacts, email + notes for VBA Using Outlook 1
J 64-bit version of Redemption? Outlook VBA and Custom Forms 2
E Redemption access AppointmentItem Label from outlook Outlook VBA and Custom Forms 6
E Redemption MAPI access(c#) Outlook VBA and Custom Forms 4
W Redemption::RDOMail.PrintOut() / DoAction(maPrint) not working Outlook VBA and Custom Forms 1
B Use Redemption to get sender's email address Outlook VBA and Custom Forms 3
M EMail1Address and EMail1AddressType strangeness using Redemption Outlook VBA and Custom Forms 2
D href tags does not result in the full url with Redemption Outlook VBA and Custom Forms 4
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
E Redemption Foldes.Add doesn't work Outlook VBA and Custom Forms 3
N Redemption.RDOSession logon() stops emails sending-they stay in Ou Outlook VBA and Custom Forms 3
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
C Redemption - Rules for outlook Outlook VBA and Custom Forms 1
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
P Redemption Send EMail Outlook VBA and Custom Forms 10
S redemption reference Outlook VBA and Custom Forms 1
T Configure mailbox OutofOffice with Redemption Outlook Outlook VBA and Custom Forms 1
D redemption dll not registering in windows vista Outlook VBA and Custom Forms 3
Y Redemption MessageItem SaveAs problem Outlook VBA and Custom Forms 8
R Newbie Redemption ISafeMailItemPtr question Outlook VBA and Custom Forms 6
Q GAL.ResolveName issue with REDEMPTION Outlook VBA and Custom Forms 5
Q REDEMPTION HANGING during LOGON Outlook VBA and Custom Forms 2
P Redemption not working on OL2007 Outlook VBA and Custom Forms 2
P Redemption Send EMail fails Outlook VBA and Custom Forms 4
S delete appointmentitem permanently using redemption Outlook VBA and Custom Forms 2
D redemption - foldercreate event + delegate user Outlook VBA and Custom Forms 8
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
U Re: Read fields with Redemption Outlook VBA and Custom Forms 1

Similar threads

Back
Top