hlaliberte
hlaliberte

Reputation: 89

Outlook web add-in scan mail item content

I was wondering if there was a way to for url in an outlook item and retrieve them to use them later.

I have a MessageReadCommandSurface add-in, but I only found a way to highlight them using a contextual add-in. Here's the documentation for that: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/contextual-outlook-add-ins.

Is there any event for newly opened Read command surfaces?

Upvotes: 1

Views: 373

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

First of all, let's realize that Outlook web add-ins work under the context of the currently selected item only in Outlook. So, each time you select an item your contextual add-in must re-evaluate conditions to activate.

You may also consider implementing a pinnable task pane where you could handle the ItemChanged event. See Implement a pinnable task pane in Outlook for more information. So, if the take pane was loaded and pinned you can just handle the ItemChanged event and process a newly selected item with relying on contextual activations.

The event-based activation can also be helpful depending on your demands. See Configure your Outlook add-in for event-based activation for more information.

If none of the provided options suits your needs I'd suggest filing a feature request at https://aka.ms/M365dev-suggestions .

Upvotes: 1

Related Questions