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 Apps / Dynamic schema doesn't...
Power Apps
Answered

Dynamic schema doesn't seems to work based on a body parameter rather then a path one

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm having issues with creating a dynamic schema based on my dynamic values.
Note that I need both params x-ms-dynamic-values and x-ms-dynamic-schema to be in my body request eventually.
(dynamic values are working as expected)


Can someone please assist?
This is my swagger (openapi 2.0):

 

 

 

 

paths:
 /api/v1/actions:
 get:
 description: Get lists
 summary: Get's action list you have access to
 operationId: GetActionsList
 parameters:
 - {in: query, name: include_attributes, default: ref, type: string, description: The
 number of items to skip before starting to collect the result set}
 responses:
 '200':
 description: OK
 schema: {$ref: '#/definitions/GetLists'}
 /api/v1/executions:
 post:
 description: Executing ST action - Uses Dynamic values and dynamic schema to
 draw form
 summary: Executing ST action
 operationId: ExecuteSTAction
 parameters:
 - in: body
 name: actionreq
 description: Action request execution.
 schema: {$ref: '#/definitions/ActionReq'}
 responses:
 '201': {description: Executed}
 /api/v1/actions/{actionId}:
 get:
 description: Gets the schema of the selected action
 summary: Get's the schema of the selected action
 operationId: GetActionSchema
 parameters:
 - {name: actionId, in: path, required: true, type: string, x-ms-summary: Select
 Action}
 responses:
 '200':
 description: OK
 schema: {type: object}
definitions:
 GetLists:
 type: array
 items:
 type: object
 properties:
 ref: {type: string}
 required: [ref]
 ActionReq:
 type: object
 properties:
 action:
 type: string
 description: ST action
 title: Select Action
 x-ms-summary: Select Action
 x-ms-dynamic-values: {operationId: GetActionsList, value-path: ref}
 x-ms-visibility: important
 actionschema:
 description: Dynamic Schema of items in selected action
 type: object
 x-ms-dynamic-schema:
 operationId: GetActionSchema
 parameters:
 actionId: {parameter: action}
 value-path: body/parameters
 required: [action, actionschema]
security:
- API Key: []

 

 

 

 

 

 

 

 

After selecting a value from the dynamic values no schema gets populated:

DavidMeu_0-1638710457194.png


But my dynamic schema doesn't seems to work + my endpoint doesn't recognize actionschema as a body param in the custom connector UI.

(I also tried to follow the native example but it doesn't seems to work (with the values in path and schema in body)):

 

paths:
 /api/v1/actions:
 get:
 description: Get lists
 summary: Get's action list you have access to
 operationId: GetActionsList
 parameters:
 - {in: query, name: include_attributes, default: ref, type: string, description: The
 number of items to skip before starting to collect the result set}
 responses:
 '200':
 description: OK
 schema: {$ref: '#/definitions/GetLists'}
 /api/v1/actions/{actionId}:
 get:
 description: Gets the schema of the selected action
 summary: Get's the schema of the selected action
 operationId: GetActionSchema
 parameters:
 - {name: actionId, in: path, required: true, type: string, x-ms-summary: Select
 Action}
 responses:
 '200':
 description: OK
 schema: {type: object}
 /api/v1/executions/{action}:
 post:
 description: Executing ST action - Uses Dynamic values and dynamic schema to
 draw form
 summary: Executing ST action
 operationId: ExecuteSTAction
 parameters:
 - name: action
 type: string
 in: path
 description: Select action you want to execute
 required: true
 x-ms-summary: Select Action
 x-ms-dynamic-values: {operationId: GetActionsList, value-path: ref}
 - name: dynamicActionSchema
 in: body
 description: Dynamic Schema of items in selected action
 schema:
 type: object
 x-ms-dynamic-schema:
 operationId: GetActionSchema
 parameters:
 actionId: {parameter: action}
 value-path: body/parameters
 responses:
 '201': {description: Executed}
definitions:
 GetLists:
 type: array
 items:
 type: object
 properties:
 ref: {type: string}
 required: [ref]
security:
- API Key: []

 

 

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard