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 / x-ms-dynamic-values - ...
Power Automate
Unanswered

x-ms-dynamic-values - static and dynamic parameters use in flow.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

Can anyone please tell what is siginificance of staticParameter and dynamicParameter in below code.And how to use them(any example)?

 

ref: https://flow.microsoft.com/en-us/documentation/customapi-how-to-swagger/

 

"x-ms-dynamic-values": {
 "operationId": "PopulateDropdown",
 "value-path": "name",
 "value-title": "properties/displayName",
 "value-collection": "value",
 "parameters": {
 "staticParameter": "{value}",
 "dynamicParameter": {
 "parameter": "{value-to-pass-to-dynamicParameter}"
 }
 }
}

 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi sunil_gaikwad,

     

    Hope this documentation about API parameters could be a reference for you:
    https://swagger.io/docs/specification/2-0/describing-parameters/

     

    I will help collect more info on it.

     

    Best regards,
    Mabel Mao

  • Samuel Profile Picture
    Microsoft Employee on at

    There is nothing special about those parameter names. They are just describing that if you want to use a static parameter you follow the "staticParameter" example. If you want to use a dynamic parameter (aka not hard-coded in swagger, but pulled from the other user input) follow the "dynamicParameter" example.

     

    That original article (https://flow.microsoft.com/en-us/documentation/customapi-how-to-swagger/) also has links to examples of swaggers that use these extensions.

     

    For dynamic values extension the example swagger is here: https://procsi.blob.core.windows.net/blog-images/sampleDynamicSwagger.json

     

    For dynamic schema extension the example swagger is here: https://procsi.blob.core.windows.net/blog-images/sampleDynamicSwagger.json

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    Thanks Samuel,

     

    Look at the following code, I want to populate dynamic drop down list based on operation GetSuppliers(which calls api: Inventory/getsuppliers/{materialname})

     

    suppName:
    type: string
    description: suppName
    x-ms-summary: suppName
    title: suppName
    x-ms-visibility: ''
    x-ms-dynamic-values:
    operationId: GetSuppliers
    value-path: key-item-output
    value-title: key-item-output
    parameters:
    materialName:
    parameter: materialName

    Can i say here that materialName as dynamic parameter ?

     

     

     

    Regards,

    Sunil

  • paulschaeflein Profile Picture
    10 on at

    I've written a blog post to help clarify the use of x-ms-dynamic-parameters:

     

    https://www.schaeflein.net/using-dynamic-values-in-microsoft-flow/

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard