web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
Answered

Power App Teams Deep Link Not Passing Query Parameters

(0) ShareShare
ReportReport
Posted on by 8
Hello,
 
I'm developing an app using Power Apps for Teams, that needs to accept to the app in in Teams with a query parameter to open a specific record. This works when the query parameter is appended to the app link, for example:
 
https://apps.powerapps.com/play/e/<unknownguid>/a/<app-id>?tenantId=<tenant-id>?recId=179, where recId is the parameter I'm trying to pass in.
 
The problem with this is that outside of Teams the app requires a license, so I'm trying to replicate this with a link within Teams. I've tried 2 patterns to get this to deep link into Teams:
 
https://teams.microsoft.com/l/entity/<app-id>/<app-id>?context=%7B%22recID%22%3A%22179%22%7D (URL Decoded: https://teams.microsoft.com/l/entity/<app-id>/<app-id>?context={"recID":"179"})
Not sure why the app-id is repeated, but saw that in most examples, but it doesn't make a difference if it's removed.
 
https://teams.microsoft.com/l/entity/<app-id>?recID=179
 
In both cases it opens that app in Teams, but doesn't pass the parameter. Some articles suggested this could be a timing issue, where Teams hasn't passed the parameter by the time the app is opened, but I believe I've ruled this out by including a button that checks the parameter manually.
 
Has anyone been able to do this succesfully?
 
Thanks,
 
 
Eric
I have the same question (0)
  • MS.Ragavendar Profile Picture
    4,856 Super User 2025 Season 2 on at
    Power App Teams Deep Link Not Passing Query Parameters
     
    Please find the below article which describes powerapps + teams deeplink.
     
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
  • Verified answer
    DeveloperAK Profile Picture
    104 on at
    Power App Teams Deep Link Not Passing Query Parameters

    Hi @ES-28100130-0,

    Deep linking from Microsoft Teams into a Power Apps for Teams app is supported, but only through a very specific mechanism. Teams does not forward arbitrary query-string parameters (such as ?recId=179) into Power Apps. Instead, it only passes a defined set of context properties, and Power Apps exposes only one of them reliably: subEntityId.

    https://teams.microsoft.com/l/entity/<app-id>/<tab-id>?context={"subEntityId":"179"}
    Reference documentation

    Microsoft docs on deep links through the context object and subEntityId:

    https://learn.microsoft.com/microsoftteams/platform/concepts/build-and-test/deep-link-application

     

    📩 Need more help? Mention @DeveloperAK anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

  • ES-28100130-0 Profile Picture
    8 on at
    Power App Teams Deep Link Not Passing Query Parameters
    Well that was it, I needed to use subEntityId, which I thought was just an arbitrary parameter id, but I guess not! Thanks @DeveloperAK!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 724 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
SebS Profile Picture

SebS 239 Moderator

Last 30 days Overall leaderboard

Featured topics