'get attachment id from redemption or RDO MAil
I'm developping an outlook addIn using C# and I need to get attachment id from redemption or RDO MAil. how's that? Thank you
Solution 1:[1]
I was trying to replace attachment with a link in async callback method and I needed to detect which attachment to replace. I used as flag the contentID of the Interop.Redemption.RDOAttachment Object and it worked fine, Thank you .
Solution 2:[2]
Outlook attachments (unlike messages) do not have unique ids since they only exist in the context of their parent messages.
PR_ATTACH_NUM
property is used to open attachments - http://msdn.microsoft.com/en-us/library/office/cc841969.aspx.
But that property is not guaranteed to stay the same when a message is opened. More than that, the value of the PR_ATTACH_NUM
property can differ depending on whether you retrieve it from the attachment table or from the attachment itself. Below is example from OutlookSpy (I am its author):
What exactly are you trying to do?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 |