Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Combining text and json in a body

(0) ShareShare
ReportReport
Posted on by 46
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!
  • KrAck Profile Picture
    KrAck 46 on at
    Combining text and json in a body
     
    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.
  • Mark Nanneman Profile Picture
    Mark Nanneman 976 on at
    Combining text and json in a body
    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

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard