Hi,
Is there a way to use JSON outputs from GET HTTP requests as dropdown options in an Adaptive card?
JSON output schema:
{
"type": "array",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"slug": {
"type": "string"
},
"fullPath": {
"type": "string"
},
"eoJobName": {
"type": "string"
},
"modelType": {
"type": "string"
},
"documentationUrl": {
"type": "string"
},
"productFruitWorkspaceCode": {},
"useEoAPI": {
"type": "boolean"
},
"referenceDate": {
"type": "string"
},
"referenceTime": {
"type": "string"
},
"planPeriod": {
"type": "string"
},
"planPeriodGrouping": {
"type": "integer"
},
"planPeriodFormat": {
"type": "string"
},
"historyDays": {
"type": "integer"
},
"displayRounding": {
"type": "integer"
},
"outputRounding": {
"type": "integer"
},
"numberOfPeriods": {
"type": "integer"
},
"defaultConnectionId": {
"type": "integer"
},
"importConnectionId": {
"type": "integer"
},
"outputConnectionId": {
"type": "integer"
},
"preSolveStoredProcedure": {},
"postSolveStoredProcedure": {},
"bannerMessage": {},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"organization": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
}
}
}
}
}
I'd like to use 'Name' values as my dropdown options. @remidyon @adilei Would love your help
*Update Solution:
{
'$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
type: "AdaptiveCard",
version: "1.5",
body: [
{
type: "TextBlock",
text: "Please select an option:",
wrap: true
},
{
type: "Input.ChoiceSet",
id: "userSelection",
choices: Topic.ApplicationNamesTable
}
],
actions: [
{
type: "Action.Submit",
title: "Submit"
}
]
}​
Romain The Low-Code...
66
Pablo Roldan
55
stampcoin
10