MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
277 stars 500 forks source link

teamSiteDomain variable is not replaced when SPFX app is loaded in Outlook #8963

Open mdissel opened 1 year ago

mdissel commented 1 year ago

We load our SPFX app in the latest Outlook client version 2307 (build 16626.20000 Beta channel)

image

The teams manifest file contains the {teamSiteDomain} variable that is dynamically replaced by MS Teams with the correct sharepoint tenant url. But this variable is not replaced when the APP is loaded in the latest outlook client.

image

ghost commented 1 year ago

Hi mdissel! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

sayali-MSFT commented 1 year ago

@mdissel - Thanks for reporting your issue. We will check this at our end and will get back to you.

sayali-MSFT commented 1 year ago

@mdissel - We are able to repro that issue, we have raised bug for the same. We will inform you once we get any update.

Outlook client version 2307 (build 16626.20000 Beta channel) Screenshot 2023-07-03 190327

sayali-MSFT commented 11 months ago

@mdissel - We are actively checking the status of bug with engineering team and let you know the updates, if we have any.

sayali-MSFT commented 9 months ago

@mdissel -Issue is resolved. Could you please test this on below Outlook version and confirm the same? Version 2310 (Build 16907.20000) SP1

mdissel commented 9 months ago

@sayali-MSFT How can I add my SPFX / Teams fullpage app to OWA so that users can add the application to the left panel in OWA?

sayali-MSFT commented 9 months ago

@mdissel -Please have look into this sample for reference-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/msgext-link-unfurling/csharp#outlook-on-the-web

Document Link-https://learn.microsoft.com/en-us/sharepoint/dev/spfx/office/overview#create-microsoft-teams-apps-for-outlook-and-office

mdissel commented 9 months ago

@sayali-MSFT I've added the TeamsSPFxApp.zip to the sppkg package, the app can be added to the left navigation panel in MS Teams, but is not available in OWA (or the new Outlook). See screenshot. The teams manifest.json is on verson 1.16

image

If I look in the app catalog in SharePoint, I see that the app is only available for SharePoint and Teams.

image

sayali-MSFT commented 9 months ago

@mdissel -Could you please try with the below sample once-https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-gs-spfx?tabs=vscode%2Cviscode&tutorial-step=1

mdissel commented 9 months ago

@sayali-MSFT But see my screenshot from Outlook Web Access (outlook.office365.com, but the same for outlook.office.com) , there's no option to add an app, so I don't think it has any to do with my app registration.

bvwanroij commented 5 months ago

Hi there, could it be that the problem is fixed, but the variable is not consistently substituted?

When i Add the Epona365 web app, restart Outlook (classic) the APP will work for a while. At some point the proper URL is no longer inserted in the APP and it stops working. See the image below: image

When you choose Pop-Out APP, this will work fine, so it must be the Outlook runtime loading of the APP image

Can you please re-open this request from Marco Dissel?

aman-sharma24 commented 2 months ago

I’m experiencing the same problem as @mdissel. This issue is not only occurring with the Outlook desktop client, but also with M365 and the Outlook 365 mobile app on both Android and iOS.

I’m attaching a screenshot that displays the network call being made by the Outlook desktop client. I’ve also included a screenshot of the M365 app for Android, showing the call it’s making. As you can see in both screenshots, the URL is not being replaced. However, the app functions correctly when I use it on Outlook Web.

thumbnail_Screenshot_2024-05-10-20-19-19-78_4a24d271e133915ae237d4bec6ffe368 image