microsoft / microsoft/AdaptiveCards

Action.InvokeAddInCommand - installation prompt is not triggerred in the new Outlook Desktop client

Open
#8,621 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Schema Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Application

Outlook Desktop (new)

Application Operating System

Windows

Schema Version

1.4

Problem Description

This acticle describes, that the installation prompt pop-up is supposed to be shown to user, if such Add-In is not installed.
(see screenshot below)
image

This code works as expected with the old Outlook Desktop, but the prompt does not get triggerred in the new Outlook Desktop.

            {
              "type": "Action.InvokeAddInCommand",
              "title": "${replyWithOutlookAddInButton.label}",
              "addInId": "${replyWithOutlookAddInButton.addInId}",
              "desktopCommandId": "msgReadOpenPaneButton",
              "isEnabled": true,
              "isPrimary": false,
              "tooltip": "${replyWithOutlookAddInButton.tooltip}"
            }
Expected Outcome

Expected: Outlook Desktop (new) should trigger installation prompt, if Add-In is not installed

Actual Outcome

Nothing happens, if Add-In is not installed

Card JSON
{
  "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "width": "stretch",
          "items": [
            {
              "type": "ActionSet",
              "isVisible": "${replyWithOutlookAddInButton.addInVisible}",
              "actions": [
                {
                  "type": "Action.OpenUrl",
                  "title": "${openButton.label}",
                  "url": "${openButton.url}"
                },
                {
                  "type": "Action.InvokeAddInCommand",
                  "title": "${replyWithOutlookAddInButton.label}",
                  "addInId": "${replyWithOutlookAddInButton.addInId}",
                  "desktopCommandId": "msgReadOpenPaneButton",
                  "isPrimary": false
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
Repro Steps
  1. Add-In should not be installed
  2. Create an Adaptive Card button, using Action.InvokeAddInCommand, using Add-In ID
  3. Using Outlook Desktop (Windows), click the button

The old Outlook Desktop opens installation prompt, as expected
The new Outlook Desktop does not open installation prompt, if Add-In is not installed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the provided Card JSON in new Outlook Desktop on Windows with the add-in absent, then compare the same steps in old Outlook Desktop. Read the linked Action.InvokeAddInCommand documentation and use the expected and actual outcomes to determine whether this behavior is handled in this repository; no repository file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.