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 Team
Community Support Team

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.
PowerApps Staff Samuel
PowerApps Staff

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

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

paulschaeflein
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 376 members 4,774 guests
Please welcome our newest community members: