OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 96 forks source link

InsightMessage getting removed once we pop out the compose pane to new Window. #4324

Open RaveendraReshma opened 5 months ago

RaveendraReshma commented 5 months ago
  1. We are developing office web Add in for outlook using event based (Smart Alert) .The Add in is generated using office yo generator Task Pane add-in using the React framework.
  2. When ever user adds any recipients in To/Cc/Bcc Section the insight message will appear with the action text by which user opens the task pane. The moment user clicks on open in new window the insight message is getting removed.

Your Environment

Expected behavior

Current behavior

Steps to reproduce

  1. Add Recipients in To Section. Once insight Message appears, Click on open in new Window.
  2. In new Window the insight message gets removed.

Provide additional details

rajjha-msft commented 5 months ago

Hey @RaveendraReshma

Thank you for reporting the issue around notification messages in OWA. We have put it in our backlog, and unfortunately have no timelines to share.

Internal Tracking Id : 267613

JuaneloJuanelo commented 1 month ago

@RaveendraReshma is there a specific reason why you are not using the persistant flag? you can add it here

 const notificationMessage = {
     type: Office.MailboxEnums.ItemNotificationMessageType.InsightMessage,
     message:
       "To Open Taskpane,",
     icon: "Icon.80x80", 
    persistent: true,
RaveendraReshma commented 1 month ago

@JuaneloJuanelo

According to the documentation persistent flag is only applicable for InformationalMessage type.

sys0601 commented 1 month ago

I am getting the same issue using a persistent InformationalMessage type. It appears to be some kind of syncing issues because sometimes it appears after a while if we close the pop-up and look at the email in the drafts folder. It would be great to have this fixed please.