Forum Discussion

oskarkuus's avatar
oskarkuus
Brass Contributor
Mar 29, 2022
Solved

Create a teams-app (app studio) - left menu to just open sharepoint url site - That works on Desktop

Hi

I am struggling to create a teams app in teams app studio that send the user to a specific URL in sharepoint. I get this to work using the teams browser (firefox and chrome).

But it does not work using the downloaded desktop client for Windows.

 

The URL i want the user to go to is:

https://<mydomain>.sharepoint.com

 

i have tried all types of links i can come up with.

It works in browser but not client.

 

I have tried to decode the URL and put the decoded url after dets= like this:

https://<mydomain>.sharepoint.com/_layouts/15/sharepoint.aspx?spfx=true&dest=<decodededURL>

 

 

Anyone able to help me fix this or is it not possible to do this.

When testing i just download the zip file and upload to the store.

Cant get it to work in the desktop client.



Here is one version app manifest that do not work in client, but do work in browser...

 

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
  "manifestVersion": "1.11",
  "version": "1.0.8",
  "id": "ee5cb933-c93d-4448-8656-c789e0d26663",
  "packageName": "Sharepoint",
  "developer": {
    "name": "Sharepoint",
    "websiteUrl": "https://www.google.se",
    "privacyUrl": "https://www.google.se",
    "termsOfUseUrl": "https://www.google.se"
  },
  "icons": {
    "color": "color.png",
    "outline": "outline.png"
  },
  "name": {
    "short": "Sharepoint",
    "full": "Sharepoint"
  },
  "description": {
    "short": "Länk till Sharepoint",
    "full": "Länk till Sharepoint sidaLänk till Sharepoint sida"
  },
  "accentColor": "#FFFFFF",
  "staticTabs": [
    {
      "entityId": "4e5ca827-18d4-4b91-9dcf-4436b0c80858",
      "name": "Sharepoint",
      "contentUrl": "https://mydomain.sharepoint.com/",
      "websiteUrl": "https://mydomain.sharepoint.com/",
      "scopes": [
        "personal"
      ]
    },
    {
      "entityId": "about",
      "scopes": [
        "personal"
      ]
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "<mydomain>.sharepoint.com"
  ]
}

 

 

  • X-Frame-Options is a header included in the response to the request to state if the domain requested will allow itself to be displayed within a frame. It has nothing to do with javascript or HTML, and cannot be changed by the originator of the request.

    This website has set this header to disallow it to be displayed in an iframe. There is nothing that can be done in a client-side web browser to stop this behaviour.

    Please refer: X-Frame-Options - HTTP | MDN (mozilla.org)

6 Replies

Resources