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 ForAll on a SP l...
Power Apps
Answered

Patch ForAll on a SP list filtered according to collection fails

(0) ShareShare
ReportReport
Posted on by 9

Hi all,

 

got this issue with a collection , which has the same structure as a SP list (it's a filtered out part of that list).

What I want to do is to do a Patch ForAll to the source list (Approvals) only for IDs from the collection (ApprovalFilter).

 

I tried variations of:

ForAll(
ApprovalFilter,
Patch(Approvals,First(Filter(Approvals,ID=ID)),{Prev_approval_result:"whatever"})
)

 

Doesn't work...

I suspect something is wrong with the ID=ID part.

 

Thanks.

 

L.

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,775 Most Valuable Professional on at

    Hi @L84 ,

    You need to disambiguate the ID

    ForAll(
     ApprovalFilter As aApproval,
     Patch(
     Approvals,
     {ID:aApproval.ID},
     {Prev_approval_result:"whatever"}
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • L84 Profile Picture
    9 on at

    Like charm. Thank you so much.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard