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
641 stars 92 forks source link

Smart Alert Feature not working in Outlook Mac Thick Client on OnAppointmentSend events. #4409

Closed RaveendraReshma closed 6 days ago

RaveendraReshma commented 2 weeks ago

Provide required information needed to triage your issue

1) We are developing office web Addin for Outlook using event based (Smart Alert). The Addin is generated using Office Yo generator Task Pane add-in using the React framework. 2) We have Send Mode as "blocked" for OnAppointmentSend events. 3) The issue appears Only in Outlook Mac Thick Client where, once the user clicks on Send, a dialog with message add in is blocking the send of this message with don't send button is shown. 4) Smart Alerts work fine in Safari browser. The issue only exists in Outlook Mac.

Your Environment

  1. Platform : MAC
  2. Host : Outlook on MAC
  3. Office version number : Version 16.84.1 (24042118)
  4. Operating System : MacOs

Expected behavior

1) When user clicks on send it should redirect to smart alert dialog, how ever its showing another dialog with message, add in is blocking the send of this message with don't send button.

Current behavior

1) On click of send another dialog appears with message, add in is blocking the send of this message with don't send button.

Steps to reproduce

1) Add recipients and click on Send. 2) Below dialog appears with the don't send button. image

Context

1) The issue is User will not be able to open the taskpane and will be shown a dialog with don't send button as shown below. image 2) And the same works fine in Outlook on web [Safari].

RaveendraReshma commented 2 weeks ago

To shorten the above,

Issue: Send button not displaying verify button popup and preventing smart alert task pane from opening

Issue Description: Upon clicking on the "Send" button of Outlook, the expected behavior is to display a "Verify" button popup. However, the current behavior is showing a "Don't Send" popup instead, which prevents the smart alert task pane from opening.

Expected Behavior: After clicking the "Send" button, a popup should appear prompting the user to verify the email address using the "Verify" button. Once verified, control should be transferred to the smart alert task pane.

neprasad-microsoft commented 2 weeks ago

Hi @RaveendraReshma Could you paste the event.completed code from your add-in here? Or if possible share it in a private repo and give exextoc access. Also, please reproduce the issue and collect logs. Steps to collect logs is captured here - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues

RaveendraReshma commented 2 weeks ago

@neprasad-microsoft

  1. The incident id for mac - GMTD59HT

  2. below is the event.completed code on onSendEvent

event.completed({ allowEvent: false, errorMessage: "Please verify.", commandId: "appOrgTaskPaneButton", cancelLabel: "Verify", }); }

neprasad-microsoft commented 2 weeks ago

Hi @RaveendraReshma We tried with this event.completed code and were still unable to repro this issue. Please share your manifest with us so that we can sideload the add-in and debug to see what the issue is.

RaveendraReshma commented 1 week ago

@neprasad-microsoft

please find below the manifest file Manifest.txt

DivyaPatidar commented 1 week ago

@RaveendraReshma The manifest you provided has localhost URLs thus it won't work for us. Is it possible for you to share manifest with actual URLs or sample add-in code where this issue repros for you?

RaveendraReshma commented 6 days ago

@DivyaPatidar

The smart alerts is now working for both the send events.