Hi @HenryJammes ,
Thanks for quick response.
here is my payload that will come to http action in Power automate:
output body:
[
{
"DisplayName": "What is your favorite color?",
"question": "What is your favorite color?",
"id": 1
},
{
"DisplayName": "How did you discover our services?",
"question": "How did you discover our services?",
"id": 2
},
{
"DisplayName": "Tell us about your experience with our products.",
"question": "Tell us about your experience with our products.",
"id": 3
}
]
After that i use ParseJson and this action output is:
Input Schema:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"DisplayName": {
"type": "string"
},
"question": {
"type": "string"
},
"id": {
"type": "integer"
}
},
"required": [
"DisplayName",
"question",
"id"
]
}
}
Output body:
[
{
"DisplayName": "What is your favorite color?",
"question": "What is your favorite color?",
"id": 1
},
{
"DisplayName": "How did you discover our services?",
"question": "How did you discover our services?",
"id": 2
},
{
"DisplayName": "Tell us about your experience with our products.",
"question": "Tell us about your experience with our products.",
"id": 3
}
]
After this return value to PVA:
input Schema:
{
"type": "object",
"properties": {
"json": {
"title": "JSON",
"type": "string",
"x-ms-content-hint": "TEXT",
"x-ms-dynamically-added": true
}
},
"additionalProperties": {}
}
input body:
{
"json": [
{
"DisplayName": "What is your favorite color?",
"question": "What is your favorite color?",
"id": 1
},
{
"DisplayName": "How did you discover our services?",
"question": "How did you discover our services?",
"id": 2
},
{
"DisplayName": "Tell us about your experience with our products.",
"question": "Tell us about your experience with our products.",
"id": 3
}
]
}
Here is Flow images:

Below is my PVA FLOW:


I got this error from PA in PVA action:
Bot said:
Error Message: The parameter with name ‘json’ on flow ‘Get JSON Data from FastAPI’ (‘ba806a9a-c1af-ee11-a569-6045bd006ade’) evaluated to type ‘TableDataType’ , expected type ‘StringDataType’ Error Code: FlowActionBadRequest Conversation Id: 32216d81-9419-41e5-9c76-d3f86b9a08e5 Time (UTC): 2024-01-11T07:42:55.408Z
here is image:

What should be the structure so my flow give me no error and question Topic ask these question prompt?
I want to prompt my question like this:

here is my PVA flow code:
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
displayName: Greeting
includeInOnSelectIntent: false
triggerQueries:
- Good afternoon
- Good morning
- Hello
- Hey
- Hi
actions:
- kind: InvokeFlowAction
id: invokeFlowAction_yXlaZe
input: {}
output:
binding:
json: Topic.Json
flowId: ba806a9a-c1af-ee11-a569-6045bd006ade
- kind: ParseValue
id: 5Hl6ux
variable: Topic.tableVariable
valueType:
kind: Table
value: =Topic.Json
- kind: SendActivity
id: sendActivity_YEjvvS
activity: "{Topic.Json}"
- kind: Question
id: question_BfQkGo
interruptionPolicy:
allowInterruption: true
variable: init:Topic.Var1
prompt:
entity:
kind: DynamicClosedListEntity
items: =Topic.tableVariable
- kind: CancelAllDialogs
id: cancelAllDialogs_01At22
Thanks