cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JacoJoubert
Frequent Visitor

Power Automate - Create a SharePoint list item when a Teams message is posted

Hi Community

 

I would like to create a SharePoint list item when a new Microsoft Teams message is posted in a specific channel.

I created a SharePoint list with a couple of columns including a "Multiple lines of text" column type with "Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" enabled for the Teams message body called "Request Description". 

 

I am able to create a new SharePoint list item when a new Teams chat is created, but the "Request Description" column only contains the text of the message and does not include any images (it does, however, look like it has a placeholder, but the image does not display).

 

Any assistance would be appreciated.

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Rahber
Super User
Super User

This is because in the body content the image in teams is referenced as <attachment id="GUID"></attachment>

This will not work in sharepoint as the attachment is not parsed there.

You should look for contentURL value that will have the image URL directly but it will still not display as this image is hosted in Teams File folder so if you are not authenticated in that browser it will show empty. You will need to modify SharePoint settings to view them.

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,
Rahber

View solution in original post

2 REPLIES 2
Rahber
Super User
Super User

This is because in the body content the image in teams is referenced as <attachment id="GUID"></attachment>

This will not work in sharepoint as the attachment is not parsed there.

You should look for contentURL value that will have the image URL directly but it will still not display as this image is hosted in Teams File folder so if you are not authenticated in that browser it will show empty. You will need to modify SharePoint settings to view them.

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,
Rahber

View solution in original post

@Rahber thank you for your response. I understand now why this is not working. Do you have any suggestions on how to authenticate the request to Teams?

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,560)