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 / Patch to update record...
Power Apps
Answered

Patch to update record using lookup and filter

(0) ShareShare
ReportReport
Posted on by 820

Hi

I want to update with patch a record but it simply doesnt do anything

here is my code:

If(
!IsBlank(inpSiules.Text),
Patch(
Components,
LookUp(
Filter(Components,'Projekto nuoroda'.'Projekto pavadinimas'=lblProjektonumeris.Text),

Kodas=inpKodas.Text),
{

//new_componentsid:GUID(lblGUID.Text),
new_dsiules:Value(inpSiules.Text)
}
)
);

What i do here is i want to filter out the source table Components as it is quite large by what is entered in lblProjektonumeris then return Kodas=inpKodas.Text where Kodas is autonumber in datasource and i have this number entered in inpKodas and then update this record value new_dsiules with what is entered in inpSiules

 

What is wrong with this code?

Categories:
  • Verified answer
    julijazas Profile Picture
    820 on at

    my mistake

    wrong inputname

    code works

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard