cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spols
Frequent Visitor

Avoid delegation warning with LookUp function

Hi All, 

 

I have a structure of one request can contain multiple requestContent.  I use SharePoint list as datasource.  In the requestContent list i have one lookup field to link to the corresponding request.  
To avoid long waiting time at each modification of a request Content I load all the requestContent related to the current request as a Collection.  When I try to save my collection to my SharePoint list I use this code

 

 

ForAll(requestContentBuffer,Patch(RequestContents,LookUp(RequestContentsRequestContents[@ID] = Value(requestContentBuffer[@ID])),{
    [All my fields]
}));

 

 

But I have a delegation warning on the LookUp condition.  I have try a lot of different syntax and that's the only one that works.  But I will have more data than the limit.

 

How Can I manage this delegation warning ?

Thanks to all.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @Spols ,

I cannot test this but try

ForAll(
   AddColumns(
      requestContentBuffer,
      "vID",
      Value(ID)
   ) As vBuffer,
   Patch(
      RequestContents,
     {ID:vBuffer.vID},
      {
         ListField1:vBuffer.Field1
         ListField2:vBuffer.Field2
	  ---and the rest ---
      }
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @Spols ,

I cannot test this but try

ForAll(
   AddColumns(
      requestContentBuffer,
      "vID",
      Value(ID)
   ) As vBuffer,
   Patch(
      RequestContents,
     {ID:vBuffer.vID},
      {
         ListField1:vBuffer.Field1
         ListField2:vBuffer.Field2
	  ---and the rest ---
      }
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Spols
Frequent Visitor

Thank you so much It works.  😜

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (67,356)