Good Day:
I am sending the following back to Power Apps after using the select function in Power Automate.
I am getting an error message in Power Apps, after using the following formula to create a collection of the appointments to display in a vertical gallery:
Ok, that all looks correct, but I think the casts you are doing in your Table are wrong. You are returning string values, but trying to cast them to values, not strings. You also aren't using ThisRecord. to identify the individual fields in the ForAll(). Try this code instead.
ClearCollect(
colAppointments,
ForAll(
Table(ParseJSON(GetPatientAppointments.Run(Appointment_Date.SelectedDate, PatientID.Text).result)),
{
appointmentid: Text(ThisRecord.Value.appointmentid),
appointmenttype: Text(ThisRecord.Value.appointmenttype)
}
)
)
Hi Pstork1,
Thanks for your reply. This is coming together!
Given your suggestion, I will try to use the HTTP response action to send the data back to Power Apps, rather than using the Respond to Power Apps action?
Thanks
Can you show a screenshot of how you have configured the Respond to Power Apps action? If you want to return an array of results to store in a table you need to use the HTTP response action. Respond to Power Apps can only send an object with specific simple properties, not an array of objects. If you are trying to use the new ParseJSON() function in Power Apps then the response needs to be a single object with a single text property.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2