how to trigger function when message arrives outlook add-in using officejs library?

shubham.akurdekar 0 Reputation points
2023-01-25T18:21:58.1233333+00:00

I want to trigger function when new message arrives in mailbox.

Outlook
Outlook
A family of Microsoft email and calendar products.
4,003 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
998 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,986 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Eugene Astafiev 891 Reputation points
    2023-01-25T19:07:26.8+00:00

    The Office JavaScript API doesn't provide anything for handling incoming emails. Web add-ins can be triggered only for the selected item in Outlook, they work under the context of currently selected item.

    You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

    0 comments No comments

  2. Eugene Astafiev 891 Reputation points
    2023-01-25T19:12:38.7166667+00:00

    The Office JavaScript API doesn't provide anything for handling incoming emails. Web add-ins can be triggered only for the selected item in Outlook, they work under the context of currently selected item.

    You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.