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 / Modify JSON value with...
Power Automate
Unanswered

Modify JSON value without changing order of the JSON payload?

(0) ShareShare
ReportReport
Posted on by
Edit: nevermind, I figured it out
 
 
With the upcoming deprecation of Teams connectors, I've been working on turning our old Webhook alerts into Power Automate flows. I'm having an issue converting our old Graylog Teams notifications.
 
Grayload sends a JSON payload to a "Request - When an HTTP request is received" trigger. That JSON payload looks like this:
 
{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "themeColor": "#FF0000",
  "text": "**Alert Event Definition Test Title triggered:**\n",
  "summary": "Event Definition Test Title",
  "sections": [
    {
      "activitySubtitle": "_Event Definition Test Description_",
      "activityImage": "",
      "text": ""
    }
  ]
}
 

When I input the body from that trigger to a "Post card in a chat or channel" action, I get an error message saying that "@type" needs to be set to "AdaptiveCard"
 
I've tried parsing the payload with a "Data Operation - Parse JSON" action and then a "Data Operation - Compose" action with setproperty() to change the value. The problem is it moves "@type" to the bottom of the JSON and then the card posts into the Teams channel is blank.
 
How can I modify that value without reordering the JSON? Or is there another way to accomplish my goal here?
 
Categories:
I have the same question (0)

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard