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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Http request format of...
Power Automate
Answered

Http request format of body

(0) ShareShare
ReportReport
Posted on by 6

I'm adding dynamic content to the body of an http request.

The body is json formatted.

When I add the data manually it works fine. However when I add dynamic content it get's a malformed error.

The problem seems to be a number that I'm retrieving from a sharepoint list. In the return output it appears as a green number (no quotation marks).

 

Code:

sam_new_zealand_3-1661569662826.png

 

Output:

 

sam_new_zealand_1-1661569523685.png

 

Can anyone help?

I've tried writing the above json to a string using Set Variable - this worked. But I'd really like to understand why the green number format is not working.

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey @sam_new_zealand 

     

    Can you please perform the test below

     

    • Try to add a compose
    • Add the tg_user_id to te compose action.
    • Then pass in the output of the compose action to the request body

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • sam_new_zealand Profile Picture
    6 on at

    Hi,

    Thanks for the suggestion. Unfortunately, it didn't change the nature of the json - same problem:

     

    sam_new_zealand_0-1661581911442.png

     

  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    @sam_new_zealand - Is this an anonymous API? If yes, I can try.

  • sam_new_zealand Profile Picture
    6 on at

    Sorry CFernandes, it requires credentials. As I said, I got it working, but only by writing the json directly with static data. As soon as I used dynamic data it fails.

    I DID get it to work using Set Variable as this explicitly allows you to specify the output as string. But this seems very convoluted.

  • Community Power Platform Member Profile Picture
    on at

    This is probably long closed / solved and you don't need it anymore, but I think you just needed to put in a " before and a " after your green part there.  See my sample of what works for me below ....

    Curious_0-1684634798892.png

     

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard