I need some help. I have created the Flow below, and while the first screen populates correctly. when sent, the dynamic data on the second screen is not appearing, its coming as empty.
Flow JSON:-
{
"version": "7.0",
"screens": [
{
"id": "DETAILS",
"title": "Get help",
"data": {
"name": {
"type": "string",
"__example__": "XXX"
}
},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "Form",
"name": "form",
"children": [
{
"type": "TextInput",
"name": "Name",
"label": "Name",
"input-type": "text",
"required": true
},
{
"type": "TextInput",
"label": "Order number",
"name": "Order_number",
"input-type": "number",
"required": true
},
{
"type": "TextBody",
"text": "${data.name}"
},
{
"type": "RadioButtonsGroup",
"label": "Choose a topic",
"name": "Choose_a_topic",
"data-source": [
{
"id": "0_Orders_and_payments",
"title": "Orders and payments"
},
{
"id": "1_Maintenance",
"title": "Maintenance"
},
{
"id": "2_Delivery",
"title": "Delivery"
},
{
"id": "3_Returns",
"title": "Returns"
},
{
"id": "4_Other",
"title": "Other"
}
],
"required": true
},
{
"type": "TextArea",
"label": "Description of issue",
"required": false,
"name": "Description_of_issue"
},
{
"type": "Footer",
"label": "Done",
"on-click-action": {
"name": "navigate",
"next": {
"type": "screen",
"name": "SCREEN_TWO"
},
"payload": {
}
}
}
]
}
]
}
},
{
"id": "SCREEN_TWO",
"title": "Feedback 2 of 2",
"data": {
"lastName": {
"type": "string",
"__example__": "Babu"
}
},
"terminal": true,
"success": true,
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "Form",
"name": "form",
"children": [
{
"type": "TextSubheading",
"text": "Rate the following: "
},
{
"type": "TextBody",
"text": "${data.lastName}"
},
{
"type": "Footer",
"label": "Done",
"on-click-action": {
"name": "complete",
"payload": {
}
}
}
]
}
]
}
}
]
}
Send JSON:-
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "XXXXX",
"type": "template",
"template": {
"name": "order_issue_utility_xx",
"language": {
"code": "en"
},
"components": [
{
"type": "button",
"sub_type": "flow",
"index": "0",
"parameters": [
{
"type": "action",
"text": "view flow",
"action": {
"flow_action_data":
{
"screen": "SCREEN_ONE",
"name":"Lokesh",
"lastName":"pattajoshi"
}
}
}
]
}
]
}
}