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 Apps
Answered

Patch text input

(0) ShareShare
ReportReport
Posted on by 8

Hi! I want to update the excelfile with the updated values from the text input. How do I write the Patch formula correct? I tried with this but I'm not sure what I do wrong..

 

Patch(Booking, ThisItem.'Booking (Name)', {Januar: TextInput2.Text})

 
CapturePA.PNG
Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Janni29 

    The problem is likely in the second element of your patch statement.  The patch specifies three things, first, the dataset being patched, second, the record being patched, and third the Item in the record being patched.  ThisItem.'Booking (Name)' seems to be ambiguous.  It should reference a record in your dataset like Patch(Booking, Lookup(Booking, ID=Gallery1.Selected.ID),  {Januar: TextInput2.Text}).  The lookup should reference a unique value in the dataset like ID and a reference to the Control containing the selected record. 

     

  • Janni29 Profile Picture
    8 on at

    Hi @Drrickryp, 

    Thank you for your reply. I'm still not getting it right.. Is it correct to use the LookUp function like this?

     

    Patch(Booking,LookUp(Booking, Name=Label6.Text),{Januar:TextInput2.Text})

     

     

  • max81 Profile Picture
    860 on at

    Looks good.

    Do you get an error message?

    Maybe don't use the play-mode inside the power apps studio. Open the App on its own to get an error message.

  • Janni29 Profile Picture
    8 on at

    I think I was mixing the fieldname and Source filename, had the same "names". It is working now. Thank you!

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard