web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse LookUp GUID ...
Power Apps
Answered

Dataverse LookUp GUID comparison delegation issue

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

 

I'm using Dataverse tables for my Canvas Power App. In the OnSelect property of one of my buttons in a gallery i've got this piece of code:

If(

LookUp(BillingProcessLists,GUID('Billing Milestone ID') = ThisItem.'Billing Milestone','Head Approver ID') = Office365Users.MyProfile().Id,
Set(accountSheetViewingMode,"approver"),
Set(accountSheetViewingMode,"viewer")
);

I'm using lookup to find a record in my BillingProcessLists table, trying to get it by comparing GUID values. My Gallery has items from the Billing Milestones table (CRM default table). Now, Billing Milestones has a unique GUID like every dataverse table does, in my app i'm saving those GUID's as text in the BillingProcessLists table. Many BillingProcessList records can reference only one Billing Milestones record. 

 

My issue with this setup is that i get the delegation warning, even though i'm using Lookup by GUID which is supposed to be delegable as per this resource: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-common-data-service#power-apps-delegable-functions-and-operations-for-dataverse

 

Anybody got any idea what is causing the issue?

I have the same question (0)
  • Verified answer
    AhmedSalih Profile Picture
    6,678 Moderator on at

    Hello, @Maciej_GS, you are right, the Lookup function is delegable. To debug this, can you try to not use the GUID function? 

  • Maciej_GS Profile Picture
    10 on at

    Hi Ahmed, thanks for the reply. Your comment gave me an idea, i tried converting the GUID to text instead of converting text to GUID and it worked! Marking your reply as solution.

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    Thank you @Maciej_GS, so now we know that GUID() function is not delegable 🙂 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard