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 / ForAll, Patch ThisReco...
Power Apps
Answered

ForAll, Patch ThisRecord.Title

(0) ShareShare
ReportReport
Posted on by 13

I’m trying to patch to my SharePoint list within a ForAll function by comparing Title to ThisRecord.Title and I’m not sure why the SharePoint list is not getting patched.

 

This is my formula:

Set(mapDrawings, Filter(MapTest, Drawing <> Blank()));

 

ForAll(mapDrawings, Patch(MapTest, LookUp(MapTest, Title = ThisRecord.Title), {Drawing: Blank(), ZoneDrawing: Blank()}); );

 

Can anyone help me understand what is going on here or how to work around this?

 

Thank you.

 

Edit: for extra info, the fields I’m patching are multi line text. The patch function works in other areas of my app when I compare to Title to a string variable or if I put Title = “Title” (doing this works even in the ForAll), the main problem seems to be comparing Title = ThisRecord.Title even though ThisRecord.Title matches the Title.

Categories:
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    The ForAll() function often benefits from having scope better defined using an As operator. Try this and see if it makes a difference:

    ForAll(mapDrawings As aRecord, 
     Patch(MapTest, 
     LookUp(MapTest, Title = aRecord.Title), 
     {
     Drawing: Blank(), 
     ZoneDrawing: Blank()
     }
     )
    );

    Hope that helps,

    Bryan

  • CadeWeiskopf Profile Picture
    13 on at

    This worked, thank you for such a quick reply!

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard