Add Custom Button in Attach Items Outlook Addin - outlook-addin

I need to Add a Custom Button on Click of Attach Items in Outlook Email. Please share the code or share the link to achieve the same.
Image

I don't think you can do that, Also note that in latest versions of Outlook there is no such dropdown - there are separate buttons.

Related

Purge an IMAP folder in Outlook 2016 using VBA

In Outlook 2016 I have connected an IMAP folder. Outlook is configured to mark items as deleted in IMAP folders. This is necessary because I want to process those items, that are marked for deletion seperately. After my macro is completed, that IMAP folder should be purged automatically.
In Outlook there is the ribbon "Folder" with the group "purge". In there is the menu "delete" with an menu item to purge the current folder. I can't find a way to execute the function from a VBA macro.
For Outlook 2010 there is this solution:
http://www.vboffice.net/en/developers/purge-deleted-imap-messages/
In Outlook 2016, the findControl method does not find the required control.
Is there any way to purge that folder?
Best solution would be some kind of API function.
Second best would be to simulate a click event on the control of the ribbon. "CommandBars" seems to contain some sort of context menus but not the ribbon controls.
Is it possible to define custom commandbars with standard controls in it? The control id seams to be still "12771".
I very briefly looked into the UI Automation toolkit but have found no good example of how to access the ribbon of a specific application.
Alternatively: can I get access to controls of the quick access toolbar? Adding the correct purge folder control to the quick access toolbar would rely on the user to click on that button at the right moment.
For buttons you can add to a ribbon or the QAT, the idMso can be seen at the end of the text when hovering over the command.
Sub PurgeFolder_Button_idMso()
' For buttons you can add to a ribbon or the QAT,
' the idMso can be seen at the end of the text when hovering over the command.
ActiveExplorer.CommandBars.ExecuteMso ("PurgeFolder")
End Sub

List Custom Button IDs in Outlook 2010 Inspector Ribbon

I have an inspector in Outlook 2010 that contains a button that was placed in the Show group in the ribbon. The inspector current item is an appointment item. The form that this button originally belonged to no longer exists but, the button remains in the Show group and there is no documentation on this button. Is there a way to list all of the buttons by ID that are in the current ribbon? I'm looking to find the ID of this button so I can set enabled to false in my XML but, have had no luck thus far.
EDIT: To be a little more precise, I'm looking to loop through all of the elements in the ribbon in Outlook so I can find the correct ID of a button I want to remove from it. I'm using C#, .NET 4.0 and VSTO for the add-in.
Answering this myself in case anyone needs it.
You can use HideFormPage("Button Name") to hide the orphaned button placed in the ribbon by a custom form. There is no need to loop through the ribbon and find it.
Application.ActiveInspector.HideFormPage("Button Name");

How can we add approval button field on view of a list in SharePoint 2010

I have a requirement where I want to add a button called approve on the bottom of read item list page. This is something when I click on approve button should change the status of list using whatever (javascript, workflow).
Please suggest how can I do this with the existing list. I have attached the screenshot below
I'll be very grateful for all of your advise
If you open a list in SharePoint designer. There is a section called Forms. You can use it to edit existing (add/edit/view) form or add a new one.

Outlook 2003 toolbar customization: add/edit button list

I have macros in my VbaProject.OTM file. A new toolbar is created when Outlook is launched to allow users to easily run the macros.
(sorry about the interface being in French ;-))
I would like users to be able to customize the toolbar by removing some of its buttons or adding them back. Here is the customization panel:
All my macros are there (all the public Sub()s in modules). However, the macro names and icons aren't really user friendly. I'm looking for a way to change both the icons and names. I'm actually using default FaceIds for my toolbar buttons (but I will add some custom icons in the future too). Also, if there would be a way for some public Sub()s to not me showed there, it would be perfect. Or to add a whole category instead of the Macros category.
When searching through the Web, all I can find is how to add toolbar buttons (which is already done in my example). Does anyone have any idea on how to edit the names/icons in the toolbar Customization panel? Is it possible?
I suggest built-in dialog boxes cannot be modified with VBA.
Try adding a permanent button "Add/delete buttons" to the toolbar, to launch a userform to choose the specific macros you want users to work with. You could then use a better name and other text to describe the macros in your own listbox.

Custom View for my plugin in Outlook 2010 / 2007

I'm working to load my WPF control into outlook as a plugin. The only way it allows me to do is to add a custom task pane (which works perfectly fine), which is kind of hard at the UI. To maintain Outlook consistency, I would like to add my own view in the right-view of Outlook, so if the user clicks on some item in the navigation pane, I show my view. This would allow me to show Outlook data in my custom implementation to enhance the UX.
Can someone please let me know how to do this?
-Fahad
Fahad,
Please google up "outlook form region". This sounds like exactly what you need - create your own form region (using outlook's developer tab) and re-register a specific mail for that.
example:
reg.Create(HKEY_CURRENT_USER, _T("Software\\Microsoft\\Office\\Outlook\\FormRegions"))
Best of luck!
Nili