Teams Adaptive Cards content didn't show on the mobile

Arch Yan 0 Reputation points
2024-08-28T02:32:37.23+00:00

Hi there,

We are migrating from Teams' incoming webhook to Power Automate's Teams webhook. However, we've encountered an issue where, when using the post as field with the poster option, the activity feed displays a "Preview unavailable" message, and the content is not visible on mobile devices.

Could you please explain what might be causing this issue and how we can resolve it?Snipaste_2024-08-28_10-30-37

Snipaste_2024-08-28_10-26-29

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,981 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,209 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Mubashir Nisar 0 Reputation points
    2024-09-13T17:22:01.5233333+00:00

    Hi,

    Possible Causes

    1. Payload Structure: Ensure the payload is formatted as an adaptive card with:

    type set to "message".

    attachments containing objects with contentType as "application/vnd.microsoft.card.adaptive".

    1. Null Attachments: If the attachments field is null or incorrect, it can cause the "Preview unavailable" message.
    2. Mobile Compatibility: Some adaptive card features may not be supported on mobile devices.

    Validate JSON: Use tools like Postman to check your payload against the adaptive card schema.Test Simplified Content: Start with a basic card and gradually add complexity to identify issues.

    Check Permissions: Ensure the posting account has the necessary Teams permissions.


  2. Mubashir Nisar 0 Reputation points
    2024-09-16T05:57:01.6933333+00:00

    Hi Yan,

    To address the issues you're facing with Microsoft Teams regarding message permissions and the "preview unavailable" error, consider the following solutions:

    Incorrect Settings

    1. Permissions: Ensure that the user has the appropriate permissions to send messages to the channel. If permissions are insufficient, the message will not be sent or visible. Check the channel settings and user roles.
    2. Adaptive Card JSON: Your JSON structure appears correct, but ensure that the workflow_url is valid and accessible. If the URL is incorrect or the endpoint does not accept the message format, it may lead to issues.

    "Preview Unavailable" Issue

    1. Update Teams: Make sure you are using the latest version of the Teams desktop client. Check for updates by clicking on your profile picture and selecting "Check for updates" [1].
    2. Clear Cache: Clearing the Teams cache can resolve many issues. Sign out of Teams, exit the application, and delete the settings.json file located in %appdata%\Microsoft\Teams. Then, restart Teams and sign in again [1].
    3. Network Settings: If you're using a firewall or proxy, ensure that it is not blocking access to Microsoft services. Whitelisting certain URLs may be necessary [4].
    4. Public Preview Features: If you're part of the public preview, ensure that the feature is enabled in your Teams settings. You can switch to public preview via the "About" section in Teams [2][3].

    Implementing these steps should help resolve the issues you're experiencing with Microsoft Teams.

    [1] Preview in Desktop Microsoft Teams APP not working https://answers.microsoft.com/en-us/msoffice/forum/all/preview-in-desktop-microsoft-teams-app-not-working/7d7169b5-0b64-4da3-9b3b-01ef4c08ba7c

    [2] Microsoft Teams Public Preview https://learn.microsoft.com/en-us/microsoftteams/public-preview-doc-updates

    [3] Get early access to new features in Microsoft Teams https://support.microsoft.com/en-us/office/get-early-access-to-new-features-in-microsoft-teams-a6e387fe-1cad-4f90-ad78-1a311c77b36d

    [4] Opening files in Teams: There was a problem reaching this app - Reddit https://www.reddit.com/r/MicrosoftTeams/comments/16ufjo0/opening_files_in_teams_there_was_a_problem/

    [5] "Public Preview" option is missing for newly created Teams users. https://techcommunity.microsoft.com/t5/microsoft-teams-public-preview/quot-public-preview-quot-option-is-missing-for-newly-created/td-p/3609098

    [6] How to enable Microsoft Teams Public Preview and get the ... - YouTube https://www.youtube.com/watch?v=kXD-l0o5PnI

    [7] Desktop app option is missing when editing Office files in Teams https://learn.microsoft.com/en-us/microsoftteams/troubleshoot/files/desktop-app-option-missing

    [8] Teams - "Preview not available. Please download the file" - Reddit https://www.reddit.com/r/MicrosoftTeams/comments/pytm3o/teams_preview_not_available_please_download_the/.

    Thank You

    Best Regards

    Mubashir Nisar


  3. CCA1506 0 Reputation points
    2024-09-17T10:48:18.41+00:00

    Hi,

    I’m encountering the same “Preview Unavailable” issue when attempting to send AdaptiveCards using webhook from the Workflows app in Microsoft Teams. Previously, we used to send MessageCards (0365 Connector), where the “summary” key would successfully display a message in the toasts and activity feed. However, this behavior does not seem to carry over to AdaptiveCards, despite what is indicated in the following link: https://stackoverflow.com/questions/68297798/push-notifications-toasts-summary-for-adaptive-cards-on-microsoft-teams.

    I have tried using the JSON example provided in the linked post, but it appears that the “summary” key is not being recognized or applied correctly.

    Could you please provide assistance on this issue? Any insights or guidance would be greatly appreciated.
    as far as I know, I'm using the latest version available:
    Teams 24231.512.3106.6573. client version is 49/24080212011

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.