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
Super User
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



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


View solution in original post

2 REPLIES 2
Expiscornovus
Super User
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



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,756)