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}" } } }
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
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
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
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/
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
34 | |
15 | |
15 | |
13 | |
8 |
User | Count |
---|---|
40 | |
32 | |
25 | |
13 | |
12 |