cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rommeldvo
Level: Powered On

How to display Microsoft Teams Information in PowerApp Form

Good day, 

 

I have a  Teams Request PowerApp, where user fills up a request, and saves the Data to a sharepoint Online List. 

 

When the admin views the data request, i would like to get the Teams Information from Microsoft Teams, so that i can show information to the requestor. 

 

So i Added a Teams datasource:

 

TeamsDataSource.PNG

 

Then i want the form to connect to this datasource, i cannot find the teams datasource in the Data Source  UI. but i somehow manage to find the Teams reference in the Formula bar, and i see the functions. 

 

teams methods.png

 

i used the GetAllteams method, but after that the form is still empty, and in the datasource, i cannot find the teams. 

I don't know how to get the fields of that method and put it in the form. 

 

teams datasource empty.PNG

 

I cannot find any complete documentation on how to use the Team connector on PowerApps, maybe because now its still in preview. 

 

I would like to get the Team Information ( team name, members, conversations, channels) and show it in my PowerApp. 

Can anyone help me? 

 

Thank you very much. 

Yours sincerely, 

 

Rommel

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: How to display Microsoft Teams Information in PowerApp Form

Hi rommeldvo,

 

I found this documentation about the connector Microsoft Teams, please check it for more details:
https://docs.microsoft.com/en-us/connectors/teams/

 

From the doc we know that GetAllTeams will return Team Id, Display Name, Description.

4.PNG

 

Please add a Gallery control to return all teams. Set the Gallery’s item property as:
MicrosoftTeams.GetAllTeams().value

 

This function will return all the items under your account.

3.PNG

 

Please try it on your side. Hope this could be a reference for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: How to display Microsoft Teams Information in PowerApp Form

Hi rommeldvo,

 

I found this documentation about the connector Microsoft Teams, please check it for more details:
https://docs.microsoft.com/en-us/connectors/teams/

 

From the doc we know that GetAllTeams will return Team Id, Display Name, Description.

4.PNG

 

Please add a Gallery control to return all teams. Set the Gallery’s item property as:
MicrosoftTeams.GetAllTeams().value

 

This function will return all the items under your account.

3.PNG

 

Please try it on your side. Hope this could be a reference for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
GaryEden
Level: Powered On

Re: How to display Microsoft Teams Information in PowerApp Form

Hi

I've searched around and this appears to be the only thread covering this topic.

I've manged to use PowerApps to connect to Teams, pull out the teams list, team channels, create new channels and post messages to the channel.

Incidentally, if posting a mesage this is the format to use (took ages to find it):

 

MicrosoftTeams.PostMessageToChannel(   

"[Team GUID]",   

"[Channel GUID]",    

{body:{content:"Hello World Test",contentType:0}}  

)

 

Set the contentType: 0 for text or 1 for html.

 

However, there doesn't appear to be any way to display the Team Channel messages in PowerApps - I was expecting something like... GetMessagesFromChannel(...) or similar.

 

Does anyone know how to retrive messages from a Teams Channel and display them in PowerApps?

 

Thanks in Advance.

Cheers
Gary

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 389 members 4,872 guests
Please welcome our newest community members: