OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
426 stars 193 forks source link

MS Teams Post Adaptive Card and Wait for Response stops in Power Automate flows #2313

Closed claudiu-mera closed 1 week ago

claudiu-mera commented 4 months ago

I am using MS Teams Post Adaptive Card and Wait for Response action in a Power Automate flow.

Each time user input is provided, a banner with message "Your response was sent to the app" is displayed below the adaptive card. The flow remains in Running state, as it is still waiting for user input.

Example of Adaptive card body:

{
    "type": "AdaptiveCard",
    "body": [

      {
        "type": "Input.ChoiceSet",
        "id": "selector",
        "style": "expanded",
        "label": "Please choose an option:"
        "isMultiSelect": false,
        "choices": [
          {
            "title": "Red,
            "value": "1"
          },
          {
            "title": "Green",
            "value": "2"
          },
          {
            "title": "Blue",
            "value": "3"
          }
        ]
      }
    ],
    "msteams": {
      "width": "Full"
    },
    "actions": [
      {
        "type": "Action.Submit",
        "title": "Submit"
      }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3"
  }

Notes:

  1. The flow was working fine until a couple of days ago, when it suddenly stopped working.
  2. The issue is encountered only on some environments, while on others not.
Prasad-MSFT commented 4 months ago

Hi @claudiu-mera - Could you please let us know what issue you are facing here? Is the Power Automate flow not sending the adaptive card?

claudiu-mera commented 4 months ago

Hi @Prasad-MSFT , the power automate flow is sending the card, but nothing happens after I click the Submit button in the adaptive card. Expected result is to see a confirmation message in Teams and the flow to resume the execution.

claudiu-mera commented 4 months ago

@Prasad-MSFT , below you can find a couple of screenshots that describe the issue:

Expected behavior: After pressing submit

Actual behavior: After pressing submit

Prasad-MSFT commented 4 months ago

@claudiu-mera - We tried to repro this issue sending below adaptive card by Power Automate flow

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.3",
    "body": [
    {
      "type": "Input.ChoiceSet",
      "id": "myColor",
      "style": "expanded",
      "label": "What color do you want?",
      "isMultiSelect": false,
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    }
    ],
    "msteams": {
      "width": "Full"
    },
    "actions": [
      {
        "type": "Action.Submit",
        "title": "Submit"
      }
    ]
  }

image

then on submitting after choosing any option got expected result. image

Power Automate Flow: image

Prasad-MSFT commented 4 months ago

Update:

We observed that this works fine in Teams web client, while in Teams Desktop client its not working as expected (nothing happens after we click the Submit button in the adaptive card) image

Tested in:

You have Microsoft Teams version 24128.3300.2862.7357.
The client version is 49/24050722600.

We have raised a bug for the same. We will inform you once we get any further update from engineering team.

Thanks!

Also, Could you please share your valuable feedback via Microsoft Teams Developer Community Response Feedback link?

claudiu-mera commented 4 months ago

@Prasad-MSFT, thank you. Unfortunately, the issue reproduces both on web client and desktop app.

web client version: v2

desktop client: teams version 24102.2219.2860.2337 client version 49/24041122313

DerekCFI commented 3 months ago

I'm having the same issue.

Prasad-MSFT commented 3 months ago

We are following up with engineering team about this issue. We will update this thread once we hear from them. Thanks!

Prasad-MSFT commented 2 weeks ago

Hi @claudiu-mera , @DerekCFI - this issue seems to be fixed now. image

We checked both in MS Teams Desktop (Microsoft Teams version 24215.1005.3072.3011. The client version is 49/24080212008.)and Web client and it works.

microsoft-github-policy-service[bot] commented 1 week ago

Tell us about your experience!

Hi claudiu-mera! We have closed this issue in our system, but we would love to hear your feedback. To let us know how we did, simply use one of the following emoji icons: :thumbsup: for resolved, :thumbsdown: for unresolved, or :heart: for a great experience on this message. Please use the link for more detailed feedback.

Best regards, Teams Platform