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
- 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.
- 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
- 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].
- 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].
- 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].
- 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