cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nickduxfield
Responsive Resident
Responsive Resident

(SOLVED) Get the file id for a file posted to Microsoft Teams to present in the Teams media Viewer

I am migrating teams who were on WhatsApp to Microsoft Teams.

I developed a method to automate posting of complied WhatsApp chats including media into a MS Team channel using Adaptive Cards.
I was able to figure out how to get these media items to present in the WEB and the Apps.

My last step involves a way to use the Viewer in Ms Teams to view the media in the post.

I could action this on the media click, or add an action button on the adaptive card.

flow.PNG

However building for building the URL I am stuck on the FileID

Example URL

 

 

 

 

https://teams.microsoft.com/_#/mp4/viewer/teams/https:~2F~2Fdavidiccentree1.sharepoint.com~2Fsites~2FTesting~2FShared%20Documents~2FGeneral~2F00000091-VIDEO-2020-03-21-08-48-43.mp4?threadId=19:06c1986a6ad14cda96c85017982d7199@thread.tacv2&baseUrl=https:~2F~2Fdavidiccentree1.sharepoint.com~2Fsites~2FTesting&
fileId=1f60cb25-e863-4616-a9fb-f88442ca4b19&ctx=files
&rootContext=items_view&viewerAction=view

 

 

 

 

 Below is the file id in the URL

 

 

 

 

fileId=1f60cb25-e863-4616-a9fb-f88442ca4b19

 

 

 

 

If i can get a hold of this i can present the media in the viewer.

URL.PNG

 

 

If I'm going about this the wrong way, do let us know.

1 REPLY 1
alrez
Community Support
Community Support

Hi,

 

Looks like you were able to figure out the answer to your question and posted what you found here. I wanted to follow up with a bit more information on the Teams connector if you would like to learn more.

 

https://docs.microsoft.com/en-us/connectors/teams/

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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