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

Update record

(0) ShareShare
ReportReport
Posted on by 104

Hi,

 

I have to update multiple records and therefore cannot come with a single form.

 

My idea would be an update ()

Update (answers; First (filter (answers; ID = Value (LabelAWbarbeiten_1_ID.Text)));
{Answer: TextInput_Anonse1_1.Text; Question_ID: Value ('TextInput_letzeFrageID + 1'.Text);
correct: Toggle_Anonse1.Value}) ;;

then he tells me with a error;  "ID is a mandatory field"

 

ok, so i added ID, but now the error "ID is generated automatically by the server" - is that a bad joke?

 

There is a Share Point online list in the background.

 

I've been google for hours ...

 

Do you have an idea ?

Categories:
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You probably need to use the Patch function in this scenario:

    Patch(
     answers;
     LookUp(answers; ID = Value (LabelAWbarbeiten_1_ID.Text));
     {
     Answer: TextInput_Anonse1_1.Text;
     Question_ID: Value ('TextInput_letzeFrageID + 1'.Text);
     correct: Toggle_Anonse1.Value
     })

    The Update function is used to replace an entire record in the data source, but what you want is to change a few fields of the record, so Patch is more appropriate here.

    Hope this helps!

  • testaccPA Profile Picture
    104 on at

    thanks!

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 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard