Nov 15 2019 02:58 AM
Nov 15 2019 02:58 AM
For my client I have built a form in Forms which has been wrapped up into a simple Teams app and added to the main navigation bar in Teams.
The app manifest just contains a single staticTab with the contentURL being the link to complete the Form, as generated by Forms (starting https://forms.microsoft.com/Pages/ResponsePage.aspx)
This works fine in the web Teams client.
However, in the desktop client, it only works if we have set the Form to "anyone with the link".
If we set it to "people in my organisation" then the when we load the app it shows the green "loading" message for a second, then goes completely blank. No form. I guess the problem is something to do with the authentication, but I didn't think I would have to do anything special to get this to work. Again it works perfectly in the web client, we only see this error in the desktop client.
Is anyone able to replicate this? Any ideas on a resolution?
Nov 15 2019 08:48 AM
I have found a method which works for embedding SharePoint pages where you set the URL of the tab to https://tenancy.sharepoint.com/_layouts/15/teamslogon.aspx?spfx=true&dest=/SitePages/New-Teams-Reque... which handles the authentication without causing Teams to bring down the hammer and redirects to a SharePoint page of your choosing. However this doesn't work for redirecting to Forms. And adding the Forms form to the SharePoint page using a Web Part doesn't work because it gets loaded in a frame which just gets blocked.
The only thing that works is to put a button/link on that SharePoint page which opens the Forms URL in a new tab. When in the Teams client this then launches the Form in the browser window. Not ideal though.
Dec 17 2019 08:44 PM
@Matthew Lamb Thanks for trying this out. Unfortunately, after some further investigation, it appears that their is yet-another-thing: the URLs that Forms use are different than the canonical URLs you'd get from the browser. At this point, what you are trying is not supported. Even if you got the exact URL correct and are able to host Forms as your own app... there's no guarantee that Forms doesn't change this URL in a few months from now.
May 19 2020 03:46 AM
@Matthew Lamb- just checking to see if you made any progress on this. I know that Gousia stated that it couldn't be done but I figured I'd check to see if you ever found another alternative to making this work. Thanks in advance.
May 19 2020 05:27 AM