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 / Embed Hyperlink in JSO...
Power Automate
Answered

Embed Hyperlink in JSON HTTP Post

(0) ShareShare
ReportReport
Posted on by 6

I have a flow that is designed to post a message to a channel using "Send HTTP Request". I am doing it this way so I can tag the channel, as the regular "Post a message in a chat or channel" does not allow you to tag the channel.

 

Anyway, I have the flow setup as seen below. I am able to get it to function perfectly without the href, but whenever I add the href I get the error: "Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format."

 

I have checked what I can for JSON, compared what I have to hyperlinks that work when flow posts on its own using "Post a message in a chat or channel", and it all lines up.

 

Any help would be appreciated.

Capture2.PNG
Capture1.PNG
Categories:
I have the same question (0)
  • Verified answer
    Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Hello @mikeTA 

     

    @The string in the screenshot is not a valid json. Mentions is not closed and the object itself not closed too.

     

    Try to add

     

    ]}

    to the payload?

  • mikeTA Profile Picture
    6 on at

    Where are you suggesting I add ]} ? I only ask because the JSON works and the HTTP request posts as expected until the href <a> is added.

  • Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Put it at the end.

     

    Have you tried to add the current JSON to a Compose action to see the whole JSON output after putting the dynamic content in it? If not, please do so and send us an output of it. For me it doesn't look like a valid JSON and so I'm surprised something happens at all.

  • mikeTA Profile Picture
    6 on at

    Did as you suggested and still received the same error. I even tried adding to compose and received what you expected - that its not valid JSON - so now I am even more confused.

    Capture2.PNG
    Capture1.PNG
  • mikeTA Profile Picture
    6 on at

    For more context, I left in your suggestion and took out the href and the code worked as intended.

    Capture1.PNG
    Capture2.PNG
  • Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Sorry. Can't open your screenshots (doesn't load). Can you post the JSON by using "Source Code" (HTML)?

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard