Custom Action

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
The item where the code is running and the user is interacting with the form
is the intrinsic Item object.
 
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
 
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
 
Back
Top