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 / Patching a listbox to ...
Power Apps
Unanswered

Patching a listbox to create a record in table (Excel)

(0) ShareShare
ReportReport
Posted on by 36

Here is the try at code at present. along with error received

 

Woody2312_1-1692200742685.png

 

would ideally like to patch 1 list box and 2 text inputs.

 

Thanks All.

Categories:
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @Woody2312 ,

     

    Please try this formula,

     

    Patch(_99aa,

    Defaults(_99aa),

    {

    Testing : ListBox1.Selected.Value,
    Testing2 : Texinput1.Text,
    Testing3 : Texinput2.Text

    }

    )

     

    Thanks!!! 

  • Woody2312 Profile Picture
    36 on at

    Still getting the same error, if it helps i would prefer to patch my comboBox and not have the list box, the list box is only there to display whats selected in the combobox anyway.

     

    ComboBox is connected to another table that i cannot overwrite in, its just a list that i need to populate the combobox.

     

    Thanks All

  • Woody2312 Profile Picture
    36 on at

    Woody2312_1-1692212681789.png

     

  • Woody2312 Profile Picture
    36 on at

    Woody2312_2-1692212720946.png

    Woody2312_3-1692212749572.png

     

  • LeonardoSB Profile Picture
    4 on at

    Hello @Woody2312,
    If you wanna send a text try this:
    Patch(_99aa,
    Defaults(_99aa),
    {Testing: Combobox.Selected.Value}))

    But before I see an error. You are doing: {Testing: Value(ListBox1.Selected})), while the right thing is {Testing: Value(ListBox1.Selected)}), put the parentheses after letter d.

  • Woody2312 Profile Picture
    36 on at

    HI, Thanks for the response,

     

    I still have the type error? will try with list box again and formula you sent

    Woody2312_0-1692216862407.png

     

  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @Woody2312 ,

     

    Patch(_99aa,
    Defaults(_99aa),
    {Testing: Combobox.Selected.Value}))

     

    In the above code, remove the last ")" parenthesis as it is not required. Please check for the Open and closed parenthesis.

     

     

    Patch(_99aa,
    Defaults(_99aa),
    {
    Testing: Combobox.Selected.Value
    }
    )

    In the above code, Testing is the column name in Excel, and if you want to add the two text input box values to the Excel you can try the below formula,

     

    Patch(_99aa,
    Defaults(_99aa),
    {
    ColumnName1: Combobox.Selected.Value,
    ColumnName2: TextInput1.Text,
    ColumnName3: TextInput2.Text
    }
    )

     

    Check this out and see if it works.
    Thanks!!!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard