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 / Update a sharepoint list
Power Apps
Answered

Update a sharepoint list

(0) ShareShare
ReportReport
Posted on by 440

Following on from my previous post I am having difficulty updating my sharepoint list when I use an Icon as a button.

 

I have added an icon into my gallery which, when pressed, will change the status of my permit to closed. The formula I have used, and doesn't work is " Update('Permit Tracker',Status,Value="Completed") ". The status is in the form of a choice column (Closed,Open, Planned)

 

Thanks in advance for helping out a noob 🙂 

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,937 Moderator on at

     

    Update('Permit Tracker',ThisItem,{Status:{Value: "Closed"}})

     

     


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • nshaw75 Profile Picture
    440 on at

    Hi @Gochix thanks for your help, it is much closer than I managed to get. When I test the update fails and returns an Error - Network error when using Update function:Field "ID" is required.

  • Gochix Profile Picture
    1,937 Moderator on at

    Can you show us a screenshot of your gallery + button. The formula I provided is expecting that you have a button for each row in the gallery.

     


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • nshaw75 Profile Picture
    440 on at

    nshaw75_0-1711729266283.png

    The 'Button' is actually an icon inside the gallery as in this tree view . 

    nshaw75_1-1711729391253.png

     

     

  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    Then you can try it using UpdateIf:

    UpdateIf('Permit Tracker',ID = ThisItem.ID,{Status:{Value: "Closed"}})


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • nshaw75 Profile Picture
    440 on at

    @Gochix  Fantastic thank you very much, It's worked a treat 😊

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard