Office Dev Show - Episode 26 - Using the Dialog API in Office Add-ins

Sign in to queue

The Discussion

  • User profile image
    Robrecht

    Hi all,

    When does this functionality become available?
    Right now, the

    Office.context.ui

    is still undefined.

    Even when loaded from //appsforoffice.microsoft.com/lib/beta/hosted/office.js

  • User profile image
    richdizz

    It is live now, but you may need to update your Office client. I know the update is in the first release click-to-run Office...not sure about the main branch yet.

  • User profile image
    Raed

    Hi,
    Does it work in Mail add in?
    It works with me in Word add in but in mails it says: Unable to get property 'displayDialogAsync' of undefined or null reference

    Im using <script src="//appsforoffice.microsoft.com/lib/beta/hosted/office.js"></script>

    Any advice ?

    Thanks
    Raed

  • User profile image
    Edward520

    Hi,

    Is there any special setting I need to set?

    when I debug this project, I got an error "Permission Denied" in the line "Office.context.ui.displayDialogAsync".

    Best Regards,

    Edward

  • User profile image
    Cas van Iersel

    Hey Guys,

    Is this already available for OWA? I get Office.context.ui is undefined.

    When will this be available?
    Kind regards,
    Cas

  • User profile image
    Patra Benoit

    Great work guys, we have been looked for this for a long time.

  • User profile image
    Test user

    Why oh why does the add-in need to re-sign in the user when the user is already signed into the Office client app? Can we not just pass through and support single sign-in?

  • User profile image
    NickLopez

    Hi,

    Does this work on Office 2013? Do you have any documentation on the Office versions it supports? TIA!

  • User profile image
    bpatra

    Hi,

    https://github.com/Keluro/Office365-AddinWeb-SignInSample

    we released an open source sample that takes benefit from dialogApi when available and fall back to the old SignalR/WebSocket approach when not available.

    It is oriented for Outlook and among other things it checks that the identities from the Add-in and for the Office365 are compatible.

    It is written in Asp.net and Angular.js

    Benoit

     

Add Your 2 Cents