I'm Trying to get data from a PowerList using a PowerAutomate in a PowerAPP
The only way I could find is using a block Called "Response an instance of Power apps or a flow"
But the answer it can be only a text, number, date, email, file, boolean. Not an Array.
So, I can only get the data from power automate from a Text data: Json (text), a CSV (text), a html (text), etc
I try to convert Text in a Collect inside Power apps with Match, MatchAll, etc. But text return is too long (more than 20 fields.
The simpliest way was trying with CSV. This is an example:
The CSV format is: "Title, TituloPropuesta, DireccionN1, .... \r\n, 14, QQD SBC resto de Accesos menos VoLTE. V, Pruebas Cliente, ... \r\n"
ClearCollect(TextoLibre;MatchAll(Datos.respuesta; "[^,]+" ).FullMatch)
But I couldn't separate Titles (first row) "\r\n", asign the titles to de Array Titles from content.
How can I do that?, and there are any way to do this returning an Array from power Automate?
This is the result making; Set(Mostrar;JSON(TextoLibre;IndentFour))
[ { "FullMatch": "Title" }, { "FullMatch": "TituloPropuesta" }, { "FullMatch": "DireccionN1" }, { "FullMatch": "Estado" }, { "FullMatch": "AprobaciónComite" }, { "FullMatch": "Importe" }, { "FullMatch": "FechaComite" }, { "FullMatch": "Direccion" }, { "FullMatch": "Gerencia\r\n14" }, { "FullMatch": "QQD SBC resto de Accesos menos VoLTE. V" }, { "FullMatch": "Pruebas Cliente" }, { "FullMatch": "Aprobada" }, { "FullMatch": "Aprobado Comité" }, { "FullMatch": "1000000" }, { "FullMatch": "2022-02-08" }, { "FullMatch": "Mi direccion" }, { "FullMatch": "Mi gerencia\r\n" } ]