Skip to content

Search message extension result in Outlook is missing openUrl card action #2821

Open
@onmomo

Description

@onmomo

We implemented bot based message extensions for Teams and Outlook. It was working as documented here

Now our customers start to report that the openUrl card action is missing on the insert cards. We are able to confirm this, please resolve this breaking change or provide a work around how to achieve openUrl card action.

Please note, on the recent screenshot, the card is missing the "Show profile" button that is an Action.OpenUrl card action. According to the provided documentation, Action.OpenUrl is the only action that is supported.

broken change
Image

working version
Image

adaptiveCard

CardFactory.adaptiveCard({
      type: 'AdaptiveCard',
      body: [
        {
          type: 'TextBlock',
          text: queryText,
          wrap: true,
          isSubtle: false,
          isVisible: !!query // show only if query was provided
        },
        {
          type: 'ColumnSet',
          separator: true,
          columns: [
            {
              type: 'Column',
              width: 'auto',
              verticalContentAlignment: 'Top',
              items: [
                {
                  type: 'Image',
                  style: 'Person',
                  url: avatar.toString(),
                  size: 'Medium'
                }
              ]
            },
            {
              type: 'Column',
              width: 'stretch',
              verticalContentAlignment: 'Center',
              items: [
                {
                  type: 'TextBlock',
                  size: 'Large',
                  weight: 'Bolder',
                  text: `${user.firstname} ${user.lastname}`,
                  wrap: true
                },
                {
                  type: 'TextBlock',
                  text: expertMetadata,
                  wrap: true
                },
                {
                  type: 'TextBlock',
                  text: userExpertise,
                  wrap: true,
                  isVisible: conceptLabels.length > 0 // show only if concept labels available
                }
              ]
            }
          ]
        }
      ],
      actions: [
        {
          title: i18next.t('card.expert.button.open.title', { lng: lang }),
          type: 'Action.OpenUrl',
          url: this.linkFactory.userUrl(user, app, UtmCampaign.ShowProfile)
        }
      ],
      version: '1.5'
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions