cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Formula with delegation

How can I apply this formula without giving me a delegation?

 

68716652_467055983873774_4623692200071397376_n.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Formula with delegation

Hi @octaking ,

Currently, the nested LookUp formula could not be delegated withn Filter function. As an alternative solution, please take a try with the following workaround:

Set the OnStart property of App to following:

 

Concurrent(
                 ClearCollect(SolicitudesCollection, Solicitudes_app),
                 Set(CurrentUserEmail, User().Email)
)

then modify your formula as below:

 

 

Filter(
         Approvals,
         LookUp(SolicitudesCollection, Id_app = Value(Label18_1.Text), Solicitante.Email) = CurrentUserEmail
)

then re-load your app (fire the OnStart property of the App control), then check if the issue is solved.

 

Note: Please also set the "Data row limits for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App settings of your app.

 

In addition, I think the filter condition (LookUp function) you specified in your Filter function does not make sense. The LoolUp(...) = User().Email filter condition would alwasys return true or false. So your Filter formula would looks like below:

Filter(Approvals, true)
Filter(Approvals, false)

The filter condition you specified within your Filter function should be related to columns in your Approvals Entity. The standard format as below:

Filter(Approvals, FilteredColumn = "A specific value")   /* <-- FilteredColumn is a column from your Approvals Entity */

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Formula with delegation

Hi @octaking ,

Currently, the nested LookUp formula could not be delegated withn Filter function. As an alternative solution, please take a try with the following workaround:

Set the OnStart property of App to following:

 

Concurrent(
                 ClearCollect(SolicitudesCollection, Solicitudes_app),
                 Set(CurrentUserEmail, User().Email)
)

then modify your formula as below:

 

 

Filter(
         Approvals,
         LookUp(SolicitudesCollection, Id_app = Value(Label18_1.Text), Solicitante.Email) = CurrentUserEmail
)

then re-load your app (fire the OnStart property of the App control), then check if the issue is solved.

 

Note: Please also set the "Data row limits for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App settings of your app.

 

In addition, I think the filter condition (LookUp function) you specified in your Filter function does not make sense. The LoolUp(...) = User().Email filter condition would alwasys return true or false. So your Filter formula would looks like below:

Filter(Approvals, true)
Filter(Approvals, false)

The filter condition you specified within your Filter function should be related to columns in your Approvals Entity. The standard format as below:

Filter(Approvals, FilteredColumn = "A specific value")   /* <-- FilteredColumn is a column from your Approvals Entity */

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,531)