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 / Combining text and jso...
Power Automate
Unanswered

Combining text and json in a body

(0) ShareShare
ReportReport
Posted on by 56
We have a system to which we can perform API-calls, but the system expects the following in the body:
  • input_data= Json-context
 
I have tried already several things, but Power Automate always removes the Json formatting:
 
I've tried this:
  • concat('input_data= ',string(variables('vJsonData')))
 
But the destination system always returns an error that it cannot parse the Json :-(
 
If I use e.g. Postman and manually perform the call with a properly formatted Json, it works correctly.
 
Any advice highly appreciated!
Categories:
I have the same question (0)
  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    I love the Star Trek theme, I use Jean-Luc Picard for many of my tests as well!

    If you're trying to do this in a Power Automate HTTP Request have you tried using just your JSON and removing the "input_data="?

    I.e.

    Just put a well formed json object like
    {
    "request": {...}
    }
    Into the body of the HTTP Request action?

    Also, do you have access to documentation for your API? 
    Sometimes if your HTTP Request headers are wrong or missing that could cause errors.  Do you have a Content-Type header? E.g. Content-Type: text/plain or Content-Type: application/json

     
  • KrAck Profile Picture
    56 on at
     
    Have done some further testing and it's working now. Seems I overlooked 1 detail in the Json file that caused the error :-(
     
    But thanks anyway for your suggestions, it helped me in finding the error in my json file!
     
    Wkr,
     
    Kris.

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