web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Response an instance o...
Power Apps
Answered

Response an instance of Power apps from Power Automate

(0) ShareShare
ReportReport
Posted on by 64

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" } ]

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Look at this thread:

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Collect-JSON-data/td-p/683712

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Evbelda ,

     

    You could use 'response' action instead of 'Response an instance of Power apps or a flow' action.

    This action could return an array from flow to canvas.

     

    vxiaochenmsft_0-1644388986770.png

    vxiaochenmsft_1-1644389011457.png

    vxiaochenmsft_2-1644389021704.png

     

    Best Regards,

    Wearsky

     

     

  • Evbelda Profile Picture
    64 on at

    @v-xiaochen-msft thnak a lot, but where you cn find this action ("response") in automate?

    I send you a capture of I can see when I look for "response".

    powerappsresponse.PNG

    I couldn't find the dark green "response" object. Is it necesary an specific profile? 

  • Evbelda Profile Picture
    64 on at

    Ok @Nogueira1306 , I'll try to include the "big" expression to my code, and I'll answer you.

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Evbelda ,

     

    It looks like this is caused by different translations.

    vxiaochenmsft_0-1644391754857.png

     

    Best Regards,

    Wearsky

     

  • Verified answer
    Evbelda Profile Picture
    64 on at

    Fine!!!!

    Next to the solution. I found it: "Respuesta" but it is PREMIUM:

    Evbelda_1-1644393519032.png

    Anyway I tried it:

    Evbelda_2-1644393613325.png

    with a JSON schema exactly the answer of the list generated . I checked that out of "Respuesta" has data, it is not empty.

    Then I get answer in power apps:

     

    Set(RespuestaPAuto;JSON(RespuestaListaaPowerAuto.Run();IndentFour));;

    But RespuestaPAuto is null, so may be the "Respuesta" block is not returning data to PowerApps.

     

    Could be for PREMIUM caracteristic or any other problem?

     

    Thanks for continue trying with this!

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Evbelda ,

     

    There are many tutorials for this action online.

    For your information:

    https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

     

    Best Regards,

    Wearsky

     

  • Verified answer
    Evbelda Profile Picture
    64 on at

    First of all, thank you very much for your information. Finally I could try the flow and I going to explain how I could get It:

    The output of the PowerList its to complex to parse it, so I should use a JSON

     analysis block with the body. After it, I get in a variable as Matrix to convert object to array, only with the values answered, with the pattern of the JSON analysis (we need to execute it to obtain the pattern of the powerlist answer):

     

    Evbelda_0-1645169787032.png

    This method clean other information not used in the content of the data, so after that we can apply de response block:

    Evbelda_1-1645170162944.png

    Also, we take the pattern of the matrix to include it in the response JSON scheme (we need to execute it to obtain the pattern of the matrix answer)

    In PowerApps, we asociate the flow to a button with the next code:

     

    Set(QueryResult;PruebadeflujoResponse.Run());;

     

    Important! We no "Clearcollect", only Set, because The flow-back is a Table.

    If we'd like to asociate this result to a Gallery, we only need to put it in the Item property and we get this:

     

    Evbelda_2-1645170568059.png

    QueryString is a table, and we can show everyvalue in a place of the gallery

     

    Thanks for all!

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard