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 from a collectio...
Power Apps
Answered

Patch from a collection with Lookup column using dataverse tables

(0) ShareShare
ReportReport
Posted on by 34

Hi All,

I'd apprecaite your assistance using the Patch function and ForAll. I get errors when I try to patch a filtered collection.

 

DamoC_0-1679632271322.png

DamoC_1-1679632298869.png

 

The error says NetsuiteDepartment_LU does not exist, but the image below shows the column is in Event_Players table. I have already tried the logical field name cr462_Netsuitedepartment_lu with no luck either.   The single patch statement commented out works fine.

Thanks Damian

 

I have the same question (0)
  • DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello,

     

    According your screenshot, I noticed : 

     

    • Event_Players is in black font. So it might not be reconized as a data source in your editor. Have you removed or renamed it ?
    • Diffrence between note and Note 

     

    DavidZoon_0-1679670069969.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

  • DamoC Profile Picture
    34 on at

    Thanks David I'd missed  the note syntax error. Unfortuneatley Event_Players the original error still exists though. I'm not sure why Event_Players is not recognized, as when I uncomment the patch updating one record below the Event_Players is highlighted in green as it should be

     

    DamoC_1-1679692983635.png

     

     

  • Verified answer
    DamoC Profile Picture
    34 on at

    Hello

    Resolved correct syntax is:

    ForAll(Filtered_Attendees,Patch([@Event_Players],Defaults([@Event_Players]),
    {NetsuiteDepartment_LU:Filtered_Attendees[@NetsuiteDepartment_LU],Note:"Test",Event_LU:var_SelectedEvent
    })); 

    Using both FORALL and PATCH require different syntax.  Thanks David for the clue "Event_Players is in black font". See for details. https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Patch-Inside-ForAll-not-working/td-p/564206

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard