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 / Respond from Flow with...
Power Apps
Unanswered

Respond from Flow with success or fail from each item

(0) ShareShare
ReportReport
Posted on by 2,563

Hi

 

Im trying to figure out how to return data to power apps from flow. I can return strings and Boolean values. But i want to return and show each item that has failed or successes.

 

My Power App lets the user select multiple files and then multiple locations the files should be created at. I then want to return the data for each item if it succeeded or failed in being created at the location.

 

I'm not really sure how to do this. I guess i need to get the respond result from the apply to each first?

 

2020-03-22 14_26_05-Edit your flow _ Power Automate.png

Categories:
I have the same question (0)
  • JimmyW Profile Picture
    2,563 on at

    Or if possible collect everything in a table and send as email.

    For example

     

    Apply to each results for each location.

    Filename1.pdfSuccess
    Filename2.pdfFail
    Filename3.pdfSuccess
    Filename4.pdfSuccess
  • JimmyW Profile Picture
    2,563 on at

    So i figured out how to get success message 

     

    array(outputs('Create_file')['statusCode'])

     

    Then i create a HTML table from this. 

    But how do i join all tables for each item as i know get 1 table for each item i just want one big table containing the results from all apply to each items.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Rather than creating an HTML table I would suggest creating an Array and then return that as JSON using a Power Apps using a Respond to HTTP request.  The JSON array can be saved as a collection making it available in Power Apps to be loaded into a data table or Gallery for display.

  • JimmyW Profile Picture
    2,563 on at

    @Pstork1 Thank you for answering.

    Im not really sure how to do that, my array seems to only contain 1 item as i do a apply to each in flow. So my return for the json would just contain 1 item i guess?

  • JimmyW Profile Picture
    2,563 on at

    @Pstork1 Im just getting the data for 1 item. I dont know how to join them into one big json or table.

     

    2020-03-22 19_05_42-Run History _ Power Automate.png

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    If you initialize an array variable before you enter the Apply to Each loop you can append the results to the Array inside the loop so that you don't end up with just one response.  When you use a compose you are just overwriting the result each time you loop.

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard