none
New Ribbon Command in Outlook as a link to a Standalone WebApp RRS feed

  • Question

  • Hi,

    I'm looking for ways to add New Ribbon Command in Outlook as a link to a Standalone WebApp. I think it was possible to achieve this using COM AddIn approach. Is it possible to add a command as a link to a separate web site using the new outlook Add in command feature?

    please let me know if there are other ways to add a Ribbon command in Outlook to point to a separate web application.


    Thanks,
    Raghav



    Tuesday, September 19, 2017 4:04 PM

All replies

  • Event handler in your COM addin can do anything you want, including running arbitrary code or launching a link.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, September 20, 2017 2:17 AM
  • Hello,

    Do you want to use Add-in commands for Outlook? You could use the an add-in command button to launch a task pane. In the task pane, the URL points to your expected one.

    For example, please check the demo at https://github.com/OfficeDev/outlook-add-in-command-demo/blob/master/command-demo-manifest.xml

    if you set the default value of composeTaskPaneUrl into https://www.microsoft.com, then you could see the web when you click the button "Insert custom message" in the mail compose mode.

    Regards,

    Celeste


    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, September 20, 2017 2:37 AM
    Moderator
  • Thanks for the reply. Is there a way to launch a web application directly from the Ribbon command instead of taking Task-pane route using Add-In commands for outlook?


    Thanks,
    Raghav


    Wednesday, September 20, 2017 4:25 AM
  • Hello Raghav,

    You could let the button execute function in the functions.js like:

    function openURL(event) {
     
    window.open("http://www.google.com");
        
    event.completed();
    
    }

    Here is the xml in the manifest:

     <ExtensionPoint xsi:type="MessageComposeCommandSurface">
                <OfficeTab id="TabDefault">
                  <Group id="msgComposeDemoGroup">
                    <Label resid="groupLabel" />
                    <!-- Function (UI-less) button -->
                    <Control xsi:type="Button" id="msgComposeFunctionButton">
                      <Label resid="funcComposeButtonLabel" />
                      <Supertip>
                        <Title resid="funcComposeSuperTipTitle" />
                        <Description resid="funcComposeSuperTipDescription" />
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="blue-icon-16" />
                        <bt:Image size="32" resid="blue-icon-32" />
                        <bt:Image size="80" resid="blue-icon-80" />
                      </Icon>
                      <Action xsi:type="ExecuteFunction">
                        <FunctionName>openURL</FunctionName>
                      </Action>
                    </Control>

    Regards,

    Celeste


    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, September 20, 2017 5:46 AM
    Moderator