Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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

 

Categories:
  • Verified answer
    DamoC Profile Picture
    34 on at
    Re: Patch from a collection with Lookup column using dataverse tables

    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

  • DamoC Profile Picture
    34 on at
    Re: Patch from a collection with Lookup column using dataverse tables

    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

     

     

  • DavidZoon Profile Picture
    738 Most Valuable Professional on at
    Re: Patch from a collection with Lookup column using dataverse tables

    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.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics