SOLVED

Manifest issue with:No-code solution to expose SharePoint pages in Microsoft Teams as a personal app

Iron Contributor

 

I have been trying out Vesa's  No-code solution to expose SharePoint pages as a personal app  . In my  version of App Studio running in the web client, the system auto creates and about tab.

 

Personal App Tabs.PNG

The intranet tab is as per the video, albeit a page on my dev tenant.  Unfortunately, the  about tab is non editable and can't be deleted in the UI . When I try to upload the application file, I get the following error:

 

 

 

Error while reading manifest.json: "staticTabs[0].name" is required 
 "staticTabs[0].contentUrl" is required 

 

 

When I extact the manifest file, I can remove the About entry ( see below) , re-assemble the package and upload again . However, this just generates an exception.  Is there something I am missing and, or have outstanding demo god debts :thinking_face:?

 

 

 

  },
    "name": {
        "short": "Company intranet",
        "full": "Company Intranet"
    },
    "description": {
        "short": "My great intranet app",
        "full": "Demo of the intranet which I surface as a personal app"
    },
    "accentColor": "#267938",
    "staticTabs": [
        {
            "entityId": "about",
            "scopes": [
                "personal"
            ]
        },
        {
            "entityId": "1010",
            "name": "Intranet",
            "contentUrl": "https://mytenant.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX-=true@dest=/sites/DemoTheLanding/SitePages/home.aspx",
            "scopes": [
                "personal"
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "mytenant.sharepoint.com"
    ],
    "webApplicationInfo": {
        "id": "00000003-0000-0ff1-ce00-000000000000",
        "resource": "https://mytenant.sharepoint.com"

 

 

 

 

 

 

 

7 Replies

@Daniel Westerdale 

I am too facing the same issue. This seems to be a recent issue with MS Teams. It is adding an extra non-editable "about" tag and causing the issue.

best response confirmed by ThereseSolimeno (Microsoft)
Solution

@Daniel Westerdale 

Update as staticTabs as below and re-upload the solution.

 

 "staticTabs": [
        {
            "entityId": "Home Tab",
            "name": "Home",
            "contentUrl": "https://<your-tenant>.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX=true&dest=/sites/SPDemo",
            "websiteUrl": "https://<your-tenant>.sharepoint.com/sites/SPDemo",
            "scopes": [
                "personal"
            ]
        }
    ]

 

@NanddeepNachan 

 

Thanks for the suggestion. Unfortunately for me this hasn't worked:cry:

 

Tabs intranet failure.PNG

 

 

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.7/MicrosoftTeams.schema.json",
    "manifestVersion": "1.7",
    "version": "1.0.0",
    "id": "????",
    "packageName": "com.wsl.portal.app",
    "developer": {
        "name": "Coder 365",
        "websiteUrl": "https://westerdale.blog",
        "privacyUrl": "https://parkersplace.com/privacy",
        "termsOfUseUrl": "https://parkersplace.com/termsofuse"
    },
    "icons": {
        "color": "color.png",
        "outline": "outline.png"
    },
    "name": {
        "short": "Company intranet",
        "full": "Company Intranet"
    },
    "description": {
        "short": "My great intranet app",
        "full": "Demo of the intranet which I surface as a personal app"
    },
    "accentColor": "#267938",
    "staticTabs": [
        {
            "entityId": "Home Tab",
            "name": "Intranet",
            "contentUrl": "https://<my-tenant>.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX=true@dest=/sites/DemoTheLanding",
            "websiteUrl": "https://<my-tenant>.sharepoint.com/sites/DemoTheLanding",
            "scopes": [
                "personal"
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "<my-tenant>.sharepoint.com"
    ],
    "webApplicationInfo": {
        "id": "00000003-0000-0ff1-ce00-000000000000",
        "resource": "https://<my-tenant>.sharepoint.com"
    }
}

 

 

If this only not working for me in this FR tenant then it is either the manifest or something else going on in my tenant e.g. the senstivity labels I have been recently testing.  Tomorrow I will repeat on my other tenant. 

 

@Daniel WesterdaleThe attached worked for me. You will have to edit the json replacing XXX as needed and read notes.

@Daniel Westerdale 

One thing I forgot to mention,

After you re-zip the package, don't import the zip in App Studio > Manifest editor > Import an existing app.

Rather, upload it as a custom app (like shown below) and it works.

upload_custom_app.png 

@NanddeepNachan 

 

Thanks for the advice.  I have only ever being uploaded the package file using the method you have suggested.  

@Steve Frank ,@NanddeepNachan 

 

Thank you both for steering me to a sucessful resolution. 

 

the issue is ....

 

 

 

  "contentUrl": "https://<my-tenant>.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX=true@dest=/sites/DemoTheLanding",

 

 

 

Needs to be changed to

 

 

 

  "contentUrl": "https://<my-tenant>.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX=true&dest=/sites/DemoTheLanding",

 

 

I think I introduced this typo :facepalm: .

 

However, does beg the question why I am not able to use the schema  in VSCode to stop me making these sort of mistakes.

 

 

 "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.7/MicrosoftTeams.schema.json", 

 

 

 

1 best response

Accepted Solutions
best response confirmed by ThereseSolimeno (Microsoft)
Solution

@Daniel Westerdale 

Update as staticTabs as below and re-upload the solution.

 

 "staticTabs": [
        {
            "entityId": "Home Tab",
            "name": "Home",
            "contentUrl": "https://<your-tenant>.sharepoint.com/_layouts/15/teamslogon.aspx?SPFX=true&dest=/sites/SPDemo",
            "websiteUrl": "https://<your-tenant>.sharepoint.com/sites/SPDemo",
            "scopes": [
                "personal"
            ]
        }
    ]

 

View solution in original post