
Hello, hoping i'll be able to have something cleared up/solved for me.
I'm trying to share a link over to Yammer from Sharepoint using a flow. That part i've got sorted. The next step is that I want to have a 'link preview' with the link itself, including an image. Basically, i'd like to replicate what shows up when you share a link from Sharepoint to Yammer manually, see below:
This is what you'd see if you share a link manually from Sharepoint to Yammer.
Can this be replicated using a flow currently? Or something similar?
The main bit i'm stumped on is the image, i've read around that it isn't possible to get images on posts using Automate currently but the posts I saw were from 2018 so I am unsure if this is still true.
Hopefully i've made the issue clear enough, i'm kind of new to forums so apologies if I haven't
I hope you can help me! 🙂
Hi @JackI,
It looks like the standard Yammer Post a Message action does not support attaching Open Graph Objects (OGO).
However, you can workaround this by using an HTTP request and using the Yammer REST API to post the same message:
https://docs.microsoft.com/en-us/rest/api/yammer/messages-json-post#attaching-open-graph-objects
However, that means using a premium HTTP action and registering an app in Yammer. You can obtain an Bearer access token via that app which you can use in your flow.
When you got that sorted you should be able to post a message with an og_url. When that link is a SharePoint resource it should generate a preview thumbnail.
See an example below.
1. HTTP action setup
2. Test result with SharePoint link as OG_url.