Skip to content

Conversation

@kkazala
Copy link
Contributor

@kkazala kkazala commented Apr 22, 2025

  • Bug fix?
  • New sample?
  • Related issues: fixes #X, partially #Y, mentioned in #Z
  • Needs API permissions?
  • Has other prerequisites? (E.g. requires a list, document library, etc.)

What's in this Pull Request?

Integration between Power Apps and MS Teams allows creating context-aware applications, that access information stored for example in the SharePoint site connected to the team.
However, the id returned by teamId parameter is not a team's guid, but an internalId which cannot be used with either the Teams Power Automate actions, or the MS Graph API.

The "Get Teams Channel Library Info" flow retrieves all the guids, ids, names and paths that might be useful in building Power Platform solutions.

Checklist

  • My pull request affects only ONE sample.
  • I have updated the README file.
  • My README has at least one static high-resolution screenshot (i.e. not a GIF)
  • My README contains complete setup instructions, including pre-requisites and permissions required

Kinga Kazala and others added 4 commits April 22, 2025 13:28
experimental features: does NOT rely
@Katerina-Chernevskaya Katerina-Chernevskaya self-requested a review July 1, 2025 17:46
@Katerina-Chernevskaya
Copy link
Contributor

Hi @kkazala ,

Thank you for your submission!
I'm trying to test it, could you please advice what values are expected as input? I tried with the Teams team id and channel id, but got the error:
image

Additionally, I recommend explicitly outlining the steps for creating a connector to provide a smooth and straightforward preparation guide.

Thank you!

Regards,
Katerina Ch.

@Katerina-Chernevskaya Katerina-Chernevskaya added the Needs Attention Something needs to be fixed with the PR before merging label Jul 3, 2025
@kkazala
Copy link
Contributor Author

kkazala commented Nov 9, 2025

hi @Katerina-Chernevskaya

Thank you for testing =)

This flow "translates" the teamId returned by Canvas Apps into the team's Guid; it also returns a number of other properties that can be useful when building PP solutions.

As explained in the readme, the teamId parameter is not a team's guid, but an internalId.
The teamId and channelId values will not be provided by a connector, but rather by a Canvas App, and you fetch it differently depending on whether it's a Canvas app embeded or integrated with teams:

Embeded Canvas App Integrated Canvas App
teamId Param("teamId") Teams.ThisTeam.Id
channelId Param("channelId") Teams.ThisChannel.Id

I think I also included a test CanvasApp in the solution?

Hope this helps =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Attention Something needs to be fixed with the PR before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants