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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,508 Moderator on at

    @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

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

  • Verified answer
    creativeopinion Profile Picture
    10,508 Moderator on at

    @gstickney What if you use different keys instead?

     

    "Tags": [
     {
     "Tag1": {
     "Value": "Tag1"
     }
     },
     {
     "Tag2": {
     "Value": "Tag2"
     }
     }
     ]
  • gstickney Profile Picture
    6 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard