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 sharepoint list...
Power Apps
Answered

Update sharepoint list from Collection

(1) ShareShare
ReportReport
Posted on by 17

I have created an powerapp where I use the SharePoint List ID as a data entry to a collection - Based on that I would like to submit the collections by ID and update a text field to a constant "Delivered" - but nothing gets updated. Any help would be great. 

 

Entry field "Type=Number"

OnChange: Collect(ScanDel, {ID: Deliver.Text, Status_Txt: "Delivered"}); Reset(Deliver)

 

Submit: ForAll(ScanDel, Patch('SHPLIST', First(Filter('SHPLIST', ID = ScanDel.ID)) , {Status_Txt:"Delivered"}))

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JensSeiger,

    Your patch function syntax looks correct. You would put it as the OnSelect property of an icon or button to run it.

  • Jens Seiger Profile Picture
    17 on at
    Thank you for your fast reply. The Submit is a butron and unfortunately not working. Any ideas? Any difference as I am using the ID?
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    I wouldn’t think so. To find out where the problem is, test it without the ForAll. BTW, Is the delivered field a Choice or Lookup type column in your SharePoint list?

  • Jens Seiger Profile Picture
    17 on at
    No. It is a single line.
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JensSeiger 

    The problem could be ID. You may want to try using the disambiguation operator 

    ForAll(ScanDel, Patch('SHPLIST', First(Filter('SHPLIST', ID = ScanDel[@ID])) , {Status_Txt:"Delivered"})). If that works, please mark the discussion solved.

  • Verified answer
    Jens Seiger Profile Picture
    17 on at

     

    I figured it out. I needed to call the value of the field in the collection.  My warning showed me that I can't compare text with a value. 

    That means I changed the collect to:

     

    Collect(ScanDel, {ID: Value(Deliver.Text), Status_Txt: "Delivered"}); Reset(Deliver)

  • simon0275 Profile Picture
    16 on at

    Thanks for this fixed my issue. disambiguation operator.

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard