Custom Action

G

Guest

In the CustomAction event handler, Is it possible to get hold of the item on
which a custom action is being called?

Say, I have a custom action called "Reply With History to all" and I have
configured it as a "Reply all" action with "Include original message text"
option. In my custom action handler can I get hold of the message from which
the user clicked my custom action "Reply with history to all"? I want to do
this so that I can copy the attachments from the original item into the
current item.
 
S

Sue Mosher [MVP-Outlook]

The item where the code is running and the user is interacting with the form
is the intrinsic Item object.
 
G

Guest

I am doing this in a COM add-in using C# and I don't think I have an
instrinsic object available to me.

Sue Mosher said:
The item where the code is running and the user is interacting with the form
is the intrinsic Item object.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

In that case, you'd need to instantiate an object variable. You will
probably want to use a wrapper class to handle any open items and any single
selected item. See http://www.outlookcode.com/d/vb.htm#wrapper. I don't know
of any C# examples of )Outlook wrapper classes.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top