How to keep add-in panel open

Asghar Amerehei 20 Reputation points
2024-05-13T18:09:01.24+00:00

I have developed an outlook add-in and I need to keep it open for some use cases. How can I force it to keep open?

I have a magic link login flow. Once a user opens the add-in for the first time they see a login page and after filling their email submiting the login form they see a waiting page. After clicking magic link the page redirects to the add-in main page.

Currently, when a user submit login form and recieve magin link email, when they open the new email, outlook closes the add-in page but I would like to keep it open while the add-in is in waiting page. How can I do this?

Even if I change the magic link to a two step verification code flow and send a code via email, I have the same issue. I would like to keep the add-in open on some circumtances

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
996 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,974 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,172 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rick Kirkham 261 Reputation points Microsoft Employee
    2024-05-14T17:57:52.6366667+00:00

    I'm afraid this isn't possible. With only a few exceptions, Outlook add-ins live in a world where there is only one Outlook message (or appointment): the one that is currently open. When a different message is opened, the task pane closes too.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.