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 / Specify display order ...
Power Automate
Unanswered

Specify display order of schema definition properties

(0) ShareShare
ReportReport
Posted on by

Is there a way to specify the display order of schema definition properties within the OpenAPI schema? For example, given the following object definitions:

 

{
 "definitions": {
 "MyObject": {
 "type": "object",
 "properties": {
 "propA": {
 "title": "Prop A",
 "type": "string"
 },
 "propB": {
 "title": "Prop B",
 "type": "string"
 }
 }
 }
 }
}

I'd like to be able to specify that propA is shown before propB when utilizing an action from within the Microsoft Flow creation interface.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @cjackson ,

     

    Do you want to order the sequence of properties when configuring your OpenAPI definition?

     

    I have seen a relative thread for this issue, please check it at here:

    https://stackoverflow.com/questions/31691247/how-can-i-define-the-sequence-of-properties-in-json-schema

     

    From this thread we know that if you want to preserve some ordering you need to do it within an array. You could achieve this by using an array of objects instead of an object in the items clause. An example:

    {
     "type" : "array" :
     "items" : [{
     "properties" : {
     "prop2" : {
     "type" : "number"
     }
     }
     }, {
     "properties" : {
     "prop1" : {
     "type" : "string"
     }
     }
     }
     ]
    }

    Please take it for a reference and try it on your side.

     

    Best regards,

    Mabel

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard