cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tono_Analyst2
Helper I
Helper I

Pull image URL from Yammer Post

Hi,

 

I have a Yammer trigger 'When there is a new message in a group" and there is an image attached to the post. 

Tono_Analyst2_0-1642992443069.png

In the raw output, I can see that there is a field called "downloaded URL" which has the image download link. 

Tono_Analyst2_1-1642992607876.png

 

How can I extract this as a string from the output?

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @Tono_Analyst2,

 

I am assuming you only have one attachment in the Yammer message?

 

If so, you could use the following expression to retrieve that download_url of the first attachment item as a string value:

 

triggerOutputs()?['body/attachments'][0]['download_url']

 

 

However, there also should be a sharepoint_web_url property (which gives you a direct link to the file instead of a download link). They might even be better in your setup:

 

triggerOutputs()?['body/attachments'][0]['sharepoint_web_url']

 

 

sharepointweburl.png

View solution in original post

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @Tono_Analyst2,

 

I am assuming you only have one attachment in the Yammer message?

 

If so, you could use the following expression to retrieve that download_url of the first attachment item as a string value:

 

triggerOutputs()?['body/attachments'][0]['download_url']

 

 

However, there also should be a sharepoint_web_url property (which gives you a direct link to the file instead of a download link). They might even be better in your setup:

 

triggerOutputs()?['body/attachments'][0]['sharepoint_web_url']

 

 

sharepointweburl.png

That's exactly what I was after, thank you!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,953)