cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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.
Highlighted
Power Apps
Power Apps

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

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

Highlighted
Anonymous
Not applicable

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

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

Highlighted
Frequent Visitor

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

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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (5,649)