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 / passing parameters to ...
Power Apps
Unanswered

passing parameters to flow

(0) ShareShare
ReportReport
Posted on by

I am getting error in below formula which is for passing parameter to flow.

 

ClearCollect(recordcollection,{uname:uname.Text,pwd:pwd.Text,precord:precord.Text,
pname:pname.Text,pmob:pmob.Text,pemailid:pemailid.Text,chkExcel:chkExcel.Text,chkGood:chkGood.Text,chkAvg:chkAvg.Text,Label8:Label8.Text});writetoprecord.Run(recordcollection)

Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @taraknath2023,

     

    Using the Power Apps V1 trigger, you can leverage the JSON() function within Power Apps:

    writetoprecord.Run(JSON(recordcollection))

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • AndrewR1 Profile Picture
    1,572 Moderator on at

    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.

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard