web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 438

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,935 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
    438 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,935 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
    438 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,935 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
    438 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard