Shortcut to Organizational Form in the Menubar ??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

We created and published a custom form to the Exchange organizational forms
library. We want to open that custom form from a shortcut in the menubar. We
were only able put a shortcut to the choose form dialog.

Is there a programmatic approach to open the custom organizational form
without opening the choose form dialog?


Thanks in advance.
 
In Outlook add-in, to create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/article.aspx?id=56 for tools and other ideas.
 
Back
Top