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