cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rommeldvo
Advocate II
Advocate II

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
v-yamao-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

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.

View solution in original post

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,145)