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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow.run() not fill th...
Power Apps
Answered

Flow.run() not fill the collection

(0) ShareShare
ReportReport
Posted on by 32

Hi Guys,

this is a big problem for me, because all the attempts that i try to populate a collection from flow fail.

I don't undertsand the problem because if i run the flow in test , all works fine, but when i call from powerapps the result is that in the step immediatly before the last i see that the flow returns the correct json with all the rows, but in the last step return 1 row retrieved.  Where is the problem?  In screenshot below you can see the result of monitoring and my call to flow is this.

ClearCollect('Raccolta 1';Load_Tasks.Run("Parameter"))

 

I Need a flow in order to populate the json because i have to do many trasformation before return data to powerapps.

Thanks a lot

 

 

 

Citrix73_0-1603780826884.png

 

Categories:
  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @Citrix73 ,

    YOu can try like below, Code from the flow you are getting a response so hope that will be in string format or JSON formate.
    but to are collecting tin the ClearCollect, that is not correct ways.

    Set(IsCompleted,ExportFileFromSP.Run(varFOrmattedJson,Text("ExportCSVFile_"&First(Split(varCurrentUser.Email, "@")).Result),"NA").completed); //You can modify accordingly .

    For your Case Like below - 

    Set(varName,Load_Tasks.Run("Parameter"));

    and Now you can use the Variable for further manipulation.\Formatting purpose.

    Thanks,
    Vijay

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay







  • Citrix73 Profile Picture
    32 on at

    Thanks a lot Vivian,

    excuse me but i'm novice on Powerapps.

    Where i have to put your formula?

     

    Set(IsCompleted,ExportFileFromSP.Run(varFOrmattedJson,Text("ExportCSVFile_"&First(Split(varCurrentUser.Email, "@")).Result),"NA").completed); //You can modify accordingly .

     

    On the Button that load data? or in the Flow? If in Flow , which kind of step i have to insert?

    Then i presume that the formula on Button in powerapps should be that. It's correct?

    Set(varName,Load_Tasks.Run("Parameter"));

  • Citrix73 Profile Picture
    32 on at

    Another question:

    if i use your formula my editor return me always error on , or . I have to change , to ;  and the Formula editor is ok. It's correct?

    but i receve always error if i use the . in the formula in example .Result.

    How can i change the . in the formula?

    Citrix73_0-1603791582060.png

     

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Citrix73 ,

    No , it not the correct way,

    i used.Result for my requirement coz I used split function for that reason i used the . Result.

    but you you configure the response like below and try to validate the same in power apps then you can use like below.

    See how I configured the response in flow.

    VijayTailor_0-1603816026168.png

    and Now I am validating the flow response that i configured in the flow.

    Set(IsCompleted,ExportSkillsSetData.Run(varFormattedJsonSkills,Text("ExportCSVSkillsFile_"&First(Split(User().Email, "@")).Result),"NA").completed);
    
    //completed is the response comming from flow and i am setting this value to IsCompleted Variable.

    Thanks
    Vijay

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay






  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Citrix73 :

    Could you tell me:

    • Do you want to retrun a table form Flow to PowerApps?
    • How is your flow configured?Could you attach some cdreenshots?

    If you want to retrun a table form Flow to PowerApps,the point is using Respons action.I'v made a test for your reference:

    1\My Flow-'PowerApp->Getitems'

    1.JPG

    2\Add a button and set it's OnSelelct property to:

    ClearCollect(ddd,'PowerApp->Getitems'.Run())

    81.gif

    Best Regards,

    Bof

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard