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

When image added to sharepoint folder post it to specific channel in microsoft teams

i am trying to create a flow that When image added to SharePoint folder a new post added to a specific channel in Microsoft teams with image attached not only a link but the problem is that the image sometimes appear and sometimes appear like the following image

and if i open the link the image appears normally

4 REPLIES 4
drweby2
Level: Powered On

Re: When image added to sharepoint folder post it to specific channel in microsoft teams

1.png2.png3.png

Community Support Team
Community Support Team

Re: When image added to sharepoint folder post it to specific channel in microsoft teams

Hi @drweby2,

 

I have made a test on my side and the flow works well. Please take a try with the following workaround:

To determine whether the file type created in SharePoint is an image, I found that the name extension of some images is uppercase such as .PNG, so I expanded the condition, as below:

@or(contains(triggerBody()?['{FilenameWithExtension}'], '.jpg'),contains(triggerBody()?['{FilenameWithExtension}'], '.png'),contains(triggerBody()?['{FilenameWithExtension}'], '.JPG'),contains(triggerBody()?['{FilenameWithExtension}'], '.PNG'))

Then insert the url of the image in Post Message, as below:

 

<img alt="Embedded Image" src="URL OF THE IMAGE FILE/ATTACHMENT" />

 

Image reference:

5.PNG

It works, as below:

6.PNG

Please take a try.

 

Best Regards,

Barry

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

Re: When image added to sharepoint folder post it to specific channel in microsoft teams

Hello, @drweby2!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
drweby2
Level: Powered On

Re: When image added to sharepoint folder post it to specific channel in microsoft teams

I try it, it fixes part of the problem in Microsoft teams web version and all the images now appear but the images still not appear in mobile or desktop app

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 425 members 6,034 guests
Please welcome our newest community members: