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
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:
It works, as below:
Please take a try.
Best Regards,
Barry
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
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
87 | |
52 | |
35 | |
32 | |
27 |
User | Count |
---|---|
76 | |
66 | |
50 | |
46 | |
42 |