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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with HTTP action...
Power Automate
Unanswered

Issue with HTTP action and JSON body

(0) ShareShare
ReportReport
Posted on by 6

I'm writing a flow to take a series of values and pass them to our ticketing API to create a new ticket in our system. The flow works except for one thing. Here is a sample JSON body that I'm passing:

 

 

 

{
 "Ticket": {
 "Name": "Test Ticket",
 "TicketTypeName": "My Type",
 "Severity": "My Severity",
 "Status": "My Status",
 "GroupName": "My Group",
 "ProductName": "My Product",
 "SupportCategory": "My Category",
 "supportFunctionalArea": "My Area",
 "AppliestoVersion": "My Version",
 "Description": "This is a test",
 "Tags": {
 "Tag": {
 "Value": "Tag1"
 },
 "Tag": {
 "Value": "Tag2"
 }
 }
 }
}

 

 

 

Notice how there are two tags within the main Tags section? This is the proper formatting of the request for our ticketing system's API. If I enter this body and save the flow, it saves fine, but, if I go back into it, the Tags section now looks like this:

 

 

 

{
 "Ticket": {
 "Name": "Test Ticket",
 "TicketTypeName": "My Type",
 "Severity": "My Severity",
 "Status": "My Status",
 "GroupName": "My Group",
 "ProductName": "My Product",
 "SupportCategory": "My Category",
 "supportFunctionalArea": "My Area",
 "AppliestoVersion": "My Version",
 "Description": "This is a test",
 "Tags": {
 "Tag": {
 "Value": "Tag2"
 }
 }
 }
}

 

 

 

It lops off the first tag reference and only keeps the last. The flow runs fine, but indeed I end up with only one tag in my resulting ticket. I've tried working around this several ways. I tried creating the body as an object variable - it does the same thing in that in the object variable definition, it wipes out all but the last tag reference. I've also tried creating the body as a string variable and then passing that to the HTTP action (using the JSON function on the variable). In that case, the variable value indeed still retains my two tags even after saving the flow, but when the flow runs, it still results with only the last tag in the sequence being on the ticket. 

 

I can confirm that the JSON body as I've written it is absolutely correct and works in other applications when making an API call. I can't think of any reason why it should excise everything but the last element in a nested object like that other than being a bug. Any advice is appreciated.

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Issue with HTTP action and JSON body

    @gstickney What about adjusting that section of the JSON?

     

     

    "Tags": [
     {
     "Tag": {
     "Value": "Tag1"
     }
     },
     {
     "Tag": {
     "Value": "Tag2"
     }
     }
     ]

     

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
  • gstickney Profile Picture
    6 on at
    Re: Issue with HTTP action and JSON body

    Thanks @creativeopinion . Unfortunately, that doesn't work either. It still removes everything except the last tag.

  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    Re: Issue with HTTP action and JSON body

    @gstickney What if you use different keys instead?

     

    "Tags": [
     {
     "Tag1": {
     "Value": "Tag1"
     }
     },
     {
     "Tag2": {
     "Value": "Tag2"
     }
     }
     ]
  • gstickney Profile Picture
    6 on at
    Re: Issue with HTTP action and JSON body

    Thank you. That worked!

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard