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

Notifications

Announcements

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.

Categories:
I have the same question (0)
  • Verified answer
    Matthy79 Profile Picture
    4,180 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,180 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.

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

  • Matthy79 Profile Picture
    4,180 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard