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.
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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,938)