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 / How to pass collection...
Power Apps
Unanswered

How to pass collections (Data Type: Table) from Power apps canvas to Power automate

(0) ShareShare
ReportReport
Posted on by 82

I have a collection stored in a variable.

ClearCollect(UpdatedData, ForAll(Gallery3.AllItems,{Age:TextBox1_1.Value, Name:TextBox1.Value, Position:TextBox1_2.Value}));


The updated information is appearing in the UpdatedData var as a datatype table. I now want to pass this to a power automate flow.

I have called the power automate flow in power apps canvas and I am using the following code to pass the collection:

NewData.Run(JSON(UpdatedData));

 

The problem is, it shows an error Invalid Argument Type(Text). Expecting a record value instead.

How can I pass this collection to a flow? All of this code is written in a single button.

In flow I am using the PowerApps(V2) with a collection var and a ParseJson which has the content Collection and the schema

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Ameen1989 

    Can you check your flow run history and show which action cause this error code "Invalid Argument Type(Text). Expecting a record value instead. ".
    And can you show your flow configuration in your side?

     

    Best Regards,

    Yueyun Zhang

  • Ameen1989 Profile Picture
    82 on at

    I didn't even run the flow. I only wrote this code and it highlighted the error

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

    Hi , @Ameen1989 

    Thanks for your response! 

    Can you check if your Power Apps V2 input is a Text type? As your error code seems to mean your flow need a record type ..

    vyueyunmsft_0-1712299600397.png

    If this , can you try to refresh your flow in Power app.

    vyueyunmsft_1-1712299637592.png

     

    Best Regards,

    Yueyun Zhang

     

  • Ameen1989 Profile Picture
    82 on at

    Yes, it is input type text. I have also attached an error I am seeing in power apps canvas

    Screenshot 2024-04-05 at 11.58.24 AM.png
    Screenshot 2024-04-05 at 11.57.48 AM.png
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Ameen1989 

    Can you save your flow and refresh your flow in Power app.

    vyueyunmsft_0-1712300524574.png

    And can you delete your code and try to use this:
    Set(varFormattedJSON , JSON(UpdatedData, JSONFormat.IndentFour&JSONFormat.IgnoreUnsupportedTypes));
    YourFLowName.Run(varFormattedJSON );

     

    Best Regards,

    Yueyun Zhang

     

  • Ameen1989 Profile Picture
    82 on at

    It is still giving the same error 😞

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

    Hi , @Ameen1989 

    This is really strange , can you try to create a new flow to test from scratch ?

    This is my test expression:

    vyueyunmsft_0-1712303090761.png

     

    This is my flow:

    vyueyunmsft_1-1712303110569.png

     

    It works good in my side:

    vyueyunmsft_2-1712303131304.png

     

     

     

     

    Best Regards,

    Yueyun Zhang

  • Ameen1989 Profile Picture
    82 on at

    I deleted and recreated the flow, the connection and the gallery but I am still facing the error. I think I found why this is happening. It looks like the Power Apps v2 trigger is only accepting the record value. Since the data is of type table and using JSON, converts it to type text, it does not accept it because it wants a record. So, I used this code and was able to pass the first record from the table.

     

    YourFlowName.Run(
     First(YourDataTable)
    )

     

    However, I am facing a couple of more issues:

    1.) I am using a power apps v2 trigger and a compose to view the outputs like you suggest. The flow runs successfully but instead of using the output, the compose gives a link which says click here to download. Clicking on it doesn't do anything.

    2.) I then tried ParseJson but I get the following error message
    Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.

    Does this mean the record is not getting passed from power apps to flow?


    I looked at other tutorials and for everyone the above JSON format which you provided in power apps is working but for me it isn't. Do I need to update the flow to receive it as data type text?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard