Hi guys,
I am trying to display the SQL-Query results in Power Apps using Power Automate to transmit the dynamic parameters (From Date and To Date) from Power Apps Form in SQL-Query and Collections to store the SQL-Query results. I followed the instructions here.
After submitting this form, the collection is created, the flow executes without any errors, but the collection become no data.
Investigation of my flow didn't help me, because the response step of my flow receive the body with data form SQL database.
OnSelect for submit button:
ClearCollect(sqlresult;MyFlow.Run(FromDate.SelectedDate;ToDate.SelectedDate))
SQL query in Power Automate Flow:
SELECT p.name, p.mobile
FROM Person p
WHERE p.id NOT IN (SELECT h.personID
FROM Holiday h
where h.fromDate >= '@{triggerBody()['SQL-execute_query']}'
and h.toDate <= '@{triggerBody()['SQL-execute_query_1']}')
Respond
{
"Table1": [
{
"name": "Anna",
"mobile": "01992345678"
},
{
"nameDevice": "Benny",
"manufacturer": "01882345678"
}
]
}
Does anyone have an idea, how to solve this problem?