Is this possible to do with teams?

%3CLINGO-SUB%20id%3D%22lingo-sub-1493225%22%20slang%3D%22en-US%22%3EIs%20this%20possible%20to%20do%20with%20teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493225%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20quite%20used%20to%20build%20Powerapps%20but%20im%20not%20very%20good%20in%20Teams%20development%20and%20what%20i%20can%20do%20with%20Teams....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20this%20idea%20i%20want%20to%20see%20if%20it%20is%20possible%20and%20what%20level%20of%20knowledge%20i%20need%20to%20build%20it%20(if%20it%20is%20even%20possible).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20scenario%3A%3C%2FP%3E%3CP%3E1.%20User%20open%20Powerapp%20and%20submit%20data%20to%20a%20form%3C%2FP%3E%3CP%3E2.%20Powerapps%20saves%20data%20to%20a%20datasource%20(Sharepoint%20list)%3C%2FP%3E%3CP%3E3.%20A%20Power%20Automate%20flow%20checks%20new%20entries%20in%20the%20sharepoint%20list%20and%20post%20a%20message%20in%20Teams%20with%20some%20of%20the%20data%20that%20the%20user%20submitted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-So%20far%20i%20know%20how%20to%20build%20this%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4.%20Now%20i%20want%20to%20collect%20answers%20from%20the%20posts%20in%20Teams%20that%20is%20posted%20with%20Power%20Automate.%20I%20want%20to%20collect%20all%20the%20comments%20etc%20that%20other%20uses%20are%20making%20on%20those%20posts.%20These%20data%20i%20want%20to%20save%20back%20to%20the%20sharepointlist%20and%20the%20row%2Frecord%20that%20triggered%20the%20specific%20post.%20Is%20this%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20what%20im%20looking%20to%20find%20is%20an%20answer%20on%20number%204.%20How%20to%20do%20this%3F%20Is%20it%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIm%20thinking%20of%20some%20kind%20of%20JSON%20code%20with%20buttons%20and%20comment%20section.%20But%20i%20have%20never%20done%20this.%20And%20i%20cant%20even%20think%20of%20how%20to%20save%20the%20data%20back%20to%20the%20sharepoint%20list%20and%20the%20correct%20record...%3C%2FP%3E%3CP%3EI%20dont%20even%20know%20what%20to%20google%20for%20here%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1493225%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1493718%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20this%20possible%20to%20do%20with%20teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493718%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89819%22%20target%3D%22_blank%22%3E%40Oskar%20Kuus%3C%2FA%3E%2C%26nbsp%3BYes%2C%20this%20is%20(point%204)%20possible.%20%3CBR%20%2F%3EFrom%20power%20automate%20you%20need%20to%20message%20in%20the%20form%20of%20adaptive%20card%20in%20Teams.%20Adaptive%20card%20is%20json%20string.%20You%20can%20send%20message%20using%20HTTP%20action%20(there%20are%20many%20different%20ways%20available%20to%20send%20message).%20You%20need%20to%20pass%20this%20json%20string%20in%20body.%20To%20create%20adaptive%20card%2C%20check%20this%20%3CA%20href%3D%22https%3A%2F%2Fadaptivecards.io%2Fsamples%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%3CBR%20%2F%3EIn%20Adaptive%20card%20you%20can%20collect%20user%20inputs%20and%20you%20can%20capture%20card%20submit%20event%20in%20power%20automate.%20Once%20you%20have%20the%20event%20captured%2C%20you%20can%20save%20all%20the%20inputs%20to%20which%20ever%20DB%20you%20wish%20to%20save%20it.%3CBR%20%2F%3ETo%20capture%20reply%20on%20that%20card%2C%20you%20can%20utilize%20the%20Teams%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-list-messagereplies%3Fview%3Dgraph-rest-beta%26amp%3Btabs%3Dhttp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Emessage%20api's%3C%2FA%3E%20which%20will%20bring%20all%20the%20reply%20for%20you.%3CBR%20%2F%3EPlease%20check%20documentation%20for%20more%20information%20on%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EPower%20apps%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EPower%20automate.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ELet%20me%20know%20if%20you%20are%20stuck%20anywhere.%20All%20the%20required%20documentations%20are%20listed%20in%20this%20post.%20%3CBR%20%2F%3EHappy%20Coding%20%3A).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

I am quite used to build Powerapps but im not very good in Teams development and what i can do with Teams....

 

I have this idea i want to see if it is possible and what level of knowledge i need to build it (if it is even possible).

 

This is the scenario:

1. User open Powerapp and submit data to a form

2. Powerapps saves data to a datasource (Sharepoint list)

3. A Power Automate flow checks new entries in the sharepoint list and post a message in Teams with some of the data that the user submitted.

 

-So far i know how to build this

 

4. Now i want to collect answers from the posts in Teams that is posted with Power Automate. I want to collect all the comments etc that other uses are making on those posts. These data i want to save back to the sharepointlist and the row/record that triggered the specific post. Is this possible?

 

So what im looking to find is an answer on number 4. How to do this? Is it possible?

 

Im thinking of some kind of JSON code with buttons and comment section. But i have never done this. And i cant even think of how to save the data back to the sharepoint list and the correct record...

I dont even know what to google for here :)

 

1 Reply
Highlighted

@Oskar Kuus, Yes, this is (point 4) possible.
From power automate you need to message in the form of adaptive card in Teams. Adaptive card is json string. You can send message using HTTP action (there are many different ways available to send message). You need to pass this json string in body. To create adaptive card, check this documentation.
In Adaptive card you can collect user inputs and you can capture card submit event in power automate. Once you have the event captured, you can save all the inputs to which ever DB you wish to save it.
To capture reply on that card, you can utilize the Teams message api's which will bring all the reply for you.
Please check documentation for more information on Power apps and Power automate.

Let me know if you are stuck anywhere. All the required documentations are listed in this post.
Happy Coding :).