cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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}"
     }
  }
}

 

4 REPLIES 4
Community Support
Community Support

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

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Anonymous
Not applicable

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

Frequent Visitor

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/

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (54,930)