Outlook Addin - Wait for a response - events

I have an Outlook Addin that creates a contact on a webpage by making an API call to that webpage. When the Addin runs (via the click of a button), the API call is made and the user is taken to that webpage to fill in the contact information. After the user has filled in the information and clicks on submit, I would like to catch that event in Outlook and get the user back to Outlook to carry out further actions. Any possible ways of getting this done? I've been looking online but haven't found any solution as such.

Try to display the web page in a modal dialog in your own form. When the form is closed, you can take whatever action is necessary.

You may find the ItemSend event of the Application class helpful. It is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program.
Also you may consider repurposing ribbon controls. See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information.

Related

Display voting results directly in reading pane of outlook

An email dispatcher should have control about emails that are redirected by him. Therefore all emails redirected have custom voting buttons "Accept" and "Decline". User now has to "vote" if email is processed by him, dispatcher should have a easy way to check which emails are accepted/declined.
So I need a solution like:
- attach automatically voting buttons to new email (MailItem.VotingOptions Property)
- User should have a easy way to "reach" voting buttons (e.g show voting buttons directly in reading pane without hover over the information row)
- Dispatcher should see voting results of redirected email directly in reading pane (now you have to open the email an click Status button).
I use Outlook 2016/Exchange 2016 ...
Thanks a lot in advance

How to send appointment through Outlook add-in?

I'm trying to implement an add-in for Outlook which has some fields and a button that once clicked does some validations and sends an appointment to inform the attendees.
I am using the function below to achieve my goal:
Office.context.mailbox.item.saveAsync()
Office.context.mailbox.item.close() (as a callback for the function above)
It works for office365, but it doesn't work for office365 thick client.
I found in the Microsoft docs that with the function 'saveAsync' in Outlook in cached mode, the item is saved to the local cache. I disabled this option and still getting the same result.
I was using OnSend functionality, but this feature is not supported for Outlook client.
Any advice or tips of how could I have the functionality of sending the appointment through my Add-in in both, client and web version of Outlook? Basically I need to trigger the existing button 'Send' in the calendar.
It sounds like the ItemSend Event (OnSend) you are using in Outlook on the Web handles your scenario. We are working to bring this functionality to Outlook on Windows soon.

Outlook plug-in

I'm looking build an outlook addin that can do the following. Would like to hear tips from anyone who might have done this before.
Upon install, read the person's profile in outlook and call a service which will create an account for that person in my app
When person sends an email from outlook with a .pptx/.ppt file(s) attached, it calls a service to automatically upload that file(s) into my app.
Upon install, read the person's profile in outlook and call a service which will create an account for that person in my app
You can use Namespace.CurrentProfileName property introduced with Outlook 2007.
When person sends an email from outlook with a .pptx/.ppt file(s) attached, it calls a service to automatically upload that file(s) into my app.
The Application.ItemSend event is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem , is used. So, in the event handler you can check the Attachments collection for the files specified and do your web calls.
See Walkthrough: Creating Your First VSTO Add-In for Outlook to get started quickly.

Office.js - Outlook - saving a unsaved appointment using saveAsync

In my main compose form in an Outlook add-in written in the new office.js API I want to be able to save a unsaved appointment.
By unsaved I mean that the user double-clicked on the calendar, wrote some data on the subject and didn't clicked "Save" just went straight to my add-in by opening the compose form.
When I call
Office.context.mailbox.item.saveAsync
I'm getting following error displayed for the user:
Error: the event couldn't be created on the server. Please try again.
and a pop-up displays a similar message:
Couldn't create the following event: [EVENT_NAME]
any tips how to save this event?
Above behavior is on Outlook Web App.
Please unselect the All day checkbox on the appointment compose form and then call saveasync, it should work. This happens to be a known issue that we are addressing.
All Day Checkbox on compose appointment

MS Outlook - Send messages located in Outbox

In my MS Outlook 2007, I have multiple (several hundred) messages in the Outbox and they are marked in bold, but NOT marked in italics. Hence, I cannot send them unless I open each message individually and hit the Send button :(
Is it possible to use a VBScript to send these messages?
I have no knowledge in scripting whatsoever.
Thank you for your help!
I have multiple (several hundred) messages in the Outbox
Did you submit these messages manually and they are stuck in the Outboox?
Anyway, you can automate Outlook from VBA. See Getting Started with VBA in Outlook 2010 to get started quickly.
Pay special attention to the ItemSend event of the Application class. It is fired whenever an Microsoft Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send method for an Outlook item, such as MailItem, is used in a program. You can display a custom dialog for confirming. The Cancel parameter passed to the event handler allows to cancel the action. If the event procedure sets this argument to true, the send action is not completed.

Resources