cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jhall
Continued Contributor
Continued Contributor

Cannot pass parameter to PowerApp inside Teams Tab

This is one of those that's got me really wondering what I'm not grok'ing.  

  • You can link to a PowerApp directly and pass along inline parameters: https://...&test=true
  • You can add a PowerApp Tab to a Channel in Teams (or similarly a link to a website the same as the item above)
  • You can create a link to the PowerApp Tab and post it back to said Team (and click/open the PowerApp within Teams)
  • (It appears that) You cannot send inline parameters via a MS Teams Tab link (that aren't expected)

I've looked through the Deep Link documentation and peeled apart the URL that Teams generates for an App.  However, there just doesn't appear to be a way I can manipulate that URL to include dynamic parameters.

Adding it into the value of the "canvasUrl" that is passed to Teams as an extra parameter to the defaults just gets it ignored. Worth noting, the "canvasURL" is encoded but once you decode it, it essentially reads as:  "https:\\apps.powerapps.com\play\providers\Microsoft.PowerApps\apps\your_app_id?screenColor=rgba(0, 176, 240, 1)&source=teamstab&locale={locale}".  Dropping an encoded variable into the front/middle/end of this doesn't work and the variable just gets ignored (but everything else works fine).

There are several entries into the Teams UserVoice requesting this, so it seems like it can't be done.  However, I wanted to ask here before I just punt and open things outside of Teams (via a direct link to the PowerApp vs. the PowerApp hosted within a Teams-Channel-Tab).

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @jhall ,

 

I agree that this cannot be achieved so far. Since the issue should be on the Teams side, you could vote and comment in the UserVoice channel.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @jhall ,

 

I agree that this cannot be achieved so far. Since the issue should be on the Teams side, you could vote and comment in the UserVoice channel.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

aprildunnam
Power Participant
Power Participant

Hi @jhall - I just posted a tutorial on how to pass parameters from a Teams chat to a pinned Power Apps in Teams or a tab that might be helpful for this:

https://youtu.be/TwrwTAa1ePQ

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,758)