cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
beniwal
Level: Powered On

Delegation issue with lookUp formula

Hi, I am getting the delegation waring for the below formula :

 

LookUp('[dbo].[Person]', email1=User().Email || email2=User().Email || email3=User().Email,PersonID)

 

I am using SQL server On-premise, This "person" table contains more than 2000 records.

 

Whereas the below formula is working perfectly fine:

 

LookUp('[dbo].[Person]',email1=ThisItem.UserName || email2=ThisItem.UserName || email3=ThisItem.UserName,PersonID)

 

 

Please suggest how to avoid it 

 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
beniwal
Level: Powered On

Re: Delegation issue with lookUp formula

Hi @timl 

 

Thank you, it worked Smiley Happy

2 REPLIES 2
Super User
Super User

Re: Delegation issue with lookUp formula

Hi @beniwal 

You can overcome this problem by storing the user email address in a variable in the OnStart property of your app, or OnVisible property of your screen.

Set(UserEmail, User().Email)

You can then modify your LookUp function so that it refers to the variable instead.

LookUp('[dbo].[Person]', email1=UserEmail || email2=UserEmail || email3=UserEmail, PersonID)
beniwal
Level: Powered On

Re: Delegation issue with lookUp formula

Hi @timl 

 

Thank you, it worked Smiley Happy

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 135 members 4,680 guests
Please welcome our newest community members: