VSTO Outlook Add-in Set a short note/info on Mailitem - vsto

I need to set a short note or info on mail item programmatically.
As shown below for instance.
I tried with setting a custom mail item category but it doesn't appear on mail item when it is opened. I can only see it in preview.
Setting something like label or tag also works for me. How do I achieve this?
Thanks in Advance.

That area is not accessible for customization and it does not show any particular property of the selected message,

Related

Programmatically move mail from Other to Focused inbox

I would like to move mail from Other to Focused Inbox programmatically or make whatever changes necessary in my new mail event handler so that the mail shows up in one on the other.
The reason I want to do this is because I want most of notification mails from a forum to be in the other inbox; except that when the Subject contains a certain string I want it to show up in the Focused Inbox.
The Manage Focused Inbox help page mentions Focused Inbox REST API and inferenceClassification property that controls but I do not know how to use that.
Is it possible to modify this property in VBA, or any way to move mails between the two inboxes programmatically?
I manually compared all items in MailItem.ItemProperties of a mail message when in Focused and Other Inbox. inferenceClassification is not one of the properties. The only properties with different values are LastModificationTime and strangely OutlookVersion, OutlookInternalVersion, and Size!
The Outlook object model doesn't provide any property or method for including/excluding items from the focused inbox list. But I think it may act like a search folder in Outlook. You just need to find out what is causing emails to appear on the list.
You can use MFCMAPI (open-source) or OutlookSpy (shareware) utilities for exploring hidden properties in Outlook to find out what properties could cause an email to appear in the focused inbox.

How to associate code with a checkbox in an Outlook template?

I have created an Outlook template with checkboxes included. I want to display a message when a checkbox has been ticked. I have written some basic codes (msgbox etc.) related to each checkbox.
Issue:
How can I include/integrate my codes in the Outlook template?
Looks like you need to create a new custom Outlook form with a code behind. You can read more about that in the Create an Outlook Form article.
You will not be able to achieve the required functionality with a message body. Any scripts from message bodies can't be run for security matters.

Add Custom Button in Attach Items 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.

Updating appointment recipient's response status

I am developing an Outlook 2010 add in using VS 2010, and c#
In that i want to modify appointment recipient's meeting status programmatically. I can read it from the property 'appointmentitem.Recipients[1].MeetingResponseStatus'. But it is a read only property. Is there any way to update this property. Manually it is possible to update (set accepted,Declined etc) this property through 'Tracking' tab of the appointment form ribbon
Since it is possible to edit the response manually i think it can be done programmatically also?
Any Help??
Thanking you in advance

Outlook Appointment Item: Set the "Label"

In Outlook 2003, when you have a calendar event, it has an option to set its Label to Important, Business, Personal, etc, each having a different colour. This colour will be the colour of the scheduled event on your calendar.
My problem is I have no idea how to change it using an AppointmentItem. I've looked through the object browser and see nothing that looks like it relates to changing the label/colour. I'm accessing Outlook through an Access module, and have code set up to change the object's subject etc.
So what I want to know is, is there a way to change the events label/colour through an appointmentItem? And if so, how?
The term you are looking for is the item's Category. You can modify it using the Categories property on the AppointmentItem object. It's a string, so you can simply put the value you want in there.
The color displayed is customizable by the user, so you are better off just setting the label name and not try to put a specific color for the appointment.
VBA has no way to set the label color. You would need CDO for this. See http://www.outlookcode.com/codedetail.aspx?id=139 for sample code.