none
Is there a way to display custom message for addin actions on top of the appointment? RRS feed

  • Question

  • When I click on my outlook addin, it will display a grey message on top of the calendar appointment saying "MyAdd is working on your XXX request". I believe this is done by Office.js underneath.

    Now, I want to display certain error messages of my addin that way too. But I do not see any outlook APIs on the Office DevCenter (https://dev.office.com/reference/add-ins/outlook/1.1/index) likely provides such functionality. Want to know if this is doable? Thanks!



    • Edited by CodingFanSteve Tuesday, March 27, 2018 6:33 PM rephrase sentense
    Tuesday, March 27, 2018 6:28 PM

All replies

  • Hi CodingFanSteve,

    You had mentioned that,"When I click on my outlook addin, it will display a grey message on top of the calendar appointment saying "MyAdd is working on your XXX request". I believe this is done by Office.js underneath."

    Are you talking about Dialog?

    You can display it using dialogs. You can also display error message with it.

    var dialog;
    Office.context.ui.displayDialogAsync('https://myDomain/myDialog.html',
    function (asyncResult) {
        if (asyncResult.status === "failed") {
            showNotification(asynceResult.error.code = ": " + asyncResult.error.message);
        } else {
            dialog = asyncResult.value;
            dialog.addEventHandler(Office.EventType.DialogMessageReceived, processMessage);
        }
    });

    Reference:

    Use the Dialog API in your Office Add-ins

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, March 28, 2018 6:32 AM
    Moderator