web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Posting Message to Yam...
Power Automate
Answered

Posting Message to Yammer from Power Automate using Http connector

(0) ShareShare
ReportReport
Posted on by 7

Hi All,

I am trying to post some content(includes images/rich text) which is being stored in a SharePoint List to Yammer group. As the default Post Message action is not supporting Image so currently I am using Http action with OAuth. I created Azure Ad App registration and provided permission accordingly. But I am still getting 401 unauthorized error. 

 

Can anybody help me out here on how to consume Yammer Rest API /messages.json · Yammer Developer Site from Power Automate with OAuth. Looking forward to your response. Thanks in Advance.

 

soumyadeep2207_0-1644389022007.png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @soumyadeep2207,

     

    Another way of authenticating could be to register your app in Yammer and use a developer access token in your header.

     

    Patrick Lamber has described the steps for registering an app in Yammer in this great article about Accessing the Yammer REST API through PowerShell.

     

    With that kind of setup you could add the token to your headers like below.

     

    accesstoken_headers.png

  • Verified answer
    soumyadeep2207 Profile Picture
    7 on at

    Hi @Expiscornovus ,

     

    Thanks for the reply, I am able to generate access token for Yammer from Flow and able to Post message with image/video. Missing part was while creating Azure AD App, in redirect url we need to provide https://flow.microsoft.com/oauth2/callback

    I will check out the registering application in Yammer. Again thanks for the reply

     

     

  • JHL1 Profile Picture
    67 on at

    Hi @soumyadeep2207,

    can you share how the images attached look like on yammer? That would be a great help. I eg only succeed in posting images as open graph objects, which is not what I want.

     

    Thank you for your help!

  • Nishant87 Profile Picture
    2 on at

    Hi,

    Can you please tell me in detail what values I need to pass to http connector OAuth authetication to get successful token and then use that for yammer api. I am trying but getting 401. I have set redirect uri in Azure App as you mentioned. Still not working.

    I think I am not passing right values in http connector with Azure AD authentication.

    Can you please assist as it worked in your case

  • buckman_rockhop Profile Picture
    2 on at

    Anybody able to get this to work? I'm not sure what I'm missing but I get "Unable to authenticate supplied credentials"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard