cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dima372
New Member

Power Automate + Yammer

Hi. I need help how to pull a picture from a sharepoint table into a publication. We want to automate congratulating employees on their birthday, examples of screenshots below.

Dima372_2-1632153451535.png

 

Dima372_3-1632153490961.png

and published like this

Dima372_4-1632153554192.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Dima372,

 

Just to double check, you want to show the thumbnail just like posting it manually, correct?

 

If so, it looks like the Post message action posts the link just as a hyperlink and not an og_image or og_url object.

 

You could workaround that by using the Yammer REST API (https://developer.yammer.com/docs/messages-json-post) with an HTTP action.

 

That does require you to register an App in Yammer and make sure you collect an access token:

https://developer.yammer.com/docs/app-registration

 

When that is setup you could use an HTTP action like below (in your case it would be the og_image object)

 

testpreviewyammerpost.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 @Dima372,

 

Just to double check, you want to show the thumbnail just like posting it manually, correct?

 

If so, it looks like the Post message action posts the link just as a hyperlink and not an og_image or og_url object.

 

You could workaround that by using the Yammer REST API (https://developer.yammer.com/docs/messages-json-post) with an HTTP action.

 

That does require you to register an App in Yammer and make sure you collect an access token:

https://developer.yammer.com/docs/app-registration

 

When that is setup you could use an HTTP action like below (in your case it would be the og_image object)

 

testpreviewyammerpost.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


JHL1
Helper I
Helper I

Hi @Expiscornovus and @Dima372 ,

thank you for all your insights on this. I succeeded in posting to Yammer via your solution in an automated fashion which is GREAT.

However, I have one question about it related to images again and unfortunately no one has shared a screen shot of the actual outcomes so far. Is it possible to display the images as if they were really attached to the Yammer post with a proper image?
So far all I succeeded in was attaching the images only as an og object with a little icon (Images OG_Example1 and 2) but not a proper thumbnail or the actual image experience I would like to achieve.

Is that even feasible by any means?

 

OG_Example1.pngOG_Example2.png

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.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,681)