question

SunnyChan-2020 avatar image
0 Votes"
SunnyChan-2020 asked HunaidHanfee-MSFT commented

How to get the subEntityId from deep link on mobile teams client

Hi all,

I am trying to get the subEntityId from deep link for the teams app, the teams app is built by spfx framework. It works fine on both web and desktop teams client, however when it comes on the mobile client, it didn't work anymore.

This is the way I get the subEntityId, I am using the teams javaScript client SDK

 microsoftTeams.initialize(() => {
       microsoftTeams.getContext((c) => {
         this.setState({ state1: c, location: c.subEntityId });
       });
     });

I have also tried the deep link using https and ms teams protocol, it still not working.

 https://teams.microsoft.com/l/entity/d4bec247-9ece-404a-8f4a-16f275def087/tasklist123?webUrl=https://tasklist.example.com/123/456&context={%22subEntityId%22:%20%22detail%22}
    
 msteams://teams.microsoft.com/l/entity/d4bec247-9ece-404a-8f4a-16f275def087/tasklist123?webUrl=https://tasklist.example.com/123/456&context={%22subEntityId%22:%20%22detail%22}

May I know is deep link for subEntityId is not supported on mobile client? If not, any road map we can have this features?

Thanks all for your help

office-teams-app-dev
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SunnyChan-2020,
As we are mainly responsible for general question of Microsoft Teams, your question related to script is not supported by us. I will remove office-teams-windows-itpro tag. Thanks for your understanding.

0 Votes 0 ·

We are looking into this issue and will get back to you soon.

0 Votes 0 ·

We tried to repro the issue, but we didn't faced any issue.
Used this and it worked fine for us.

  https://teams.microsoft.com/l/entity/d4bec247-9ece-404a-8f4a-16f275def087/tasklist123?webUrl=https://tasklist.example.com/123/456&context={%22subEntityId%22:%20%22detail%22}

Can you please share your manifest so that we can explore in details.

0 Votes 0 ·

1 Answer

SunnyChan-2020 avatar image
0 Votes"
SunnyChan-2020 answered HunaidHanfee-MSFT commented

Thanks for the prompt reply.

What we need to do is super simple, just show the subEntityId on the webpart.

It works fine on the web and desktop client, I can get the "detail" keyword from subEntityId

113179-untitled.png


However, when it comes on iOS client, it cannot retrieve the value.

113135-img-7b52d6dfa3a8-1.jpeg




I have upload the sppkg and repository for your reference.
SPPKG: https://twk.pm/ntm9zvbigk
repository: https://bitbucket.org/ptt-sunnychan/nan-fung-teams-app/src/master/

I am using Teams iOS client version: 3.10.0


untitled.png (35.3 KiB)
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We tried in iOS also and it worked well for us. We have used same Teams client v3.10.0.
Can you please share how you are executing the deeplink? I didn't find in the repository where you are executing it.

Thanks.

0 Votes 0 ·

We are closing this issue internally. Please let us know if issue still persists.

0 Votes 0 ·

Hi, I am also facing the same issue.
I am using deep linking to tab from chat. The deep linking is working fine in teams web client and desktop client, and also in android teams client.
But in teams iOS client I am unable to get the value of subEntityId. So I was able to redirect to the required tab, but unable to do followups based on the subEntityId.

0 Votes 0 ·

Is your Teams Client on iOS latest and updated? Can you share Deeplink you are passing to repro this issue?

0 Votes 0 ·
Show more comments