Hi @taraknath2023
It looks like you're trying to clear a collection called recordcollection, populate it with values from various text inputs and labels, and then pass this collection to a Power Automate flow named writetoprecord. The formula you provided has a small mistake. It appears that chkExcel, chkGood, chkAvg, and Label8 are not text inputs but potentially checkboxes or labels, so you need to adjust how you retrieve their values.
Here's the corrected version of your Power Apps formula:
ClearCollect(
recordcollection,
{
uname: uname.Text,
pwd: pwd.Text,
precord: precord.Text,
pname: pname.Text,
pmob: pmob.Text,
pemailid: pemailid.Text,
chkExcel: chkExcel.Value, // Assuming chkExcel is a checkbox control
chkGood: chkGood.Value, // Assuming chkGood is a checkbox control
chkAvg: chkAvg.Value, // Assuming chkAvg is a checkbox control
Label8: Label8.Text
}
);
writetoprecord.Run(recordcollection)
In this corrected formula, I've changed .Text to .Value for the checkbox controls (chkExcel, chkGood, and chkAvg) assuming they are checkboxes. This is because checkbox controls have a Value property that indicates whether the checkbox is checked or not. For labels like Label8, you can directly use .Text property as you did before.