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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Delegation
Power Apps
Answered

Power Apps Delegation

(0) ShareShare
ReportReport
Posted on by 350

 

I'm trying to find description of delegable and non-delegable code. I've gotten several warnings regarding delegable code.  

Before I get too far I need to know which instructions are delegable and non-delegable.

 

Here's a snippet of my code I'm using.  

 

UpdateContext({baddatespopout:false,requisitionclosed:false});
With(
{
wLookUp: LookUp(
OPTrack_FormsInventoryEnhancedTables,
FORM_NO = ddl_Form_No_2.Selected.Value && WAREHOUSE = ddl_From_Warehouse_2.Selected.Value && LAST_INVEN = dteLast_Inven.SelectedDate)
},
If((dtedeiverydate.SelectedDate < dteReqDate.SelectedDate && !IsBlank(dtedeiverydate.SelectedDate) || dterecdate.SelectedDate < dteReqDate.SelectedDate && !IsBlank(dtedeiverydate.SelectedDate)),
Notify("ERROR! Invalid dates provided."),
If(!IsBlank(wLookUp.REC_DATE) && !IsBlank(wLookUp.DEL_DATE),
Notify("ERROR! Requisition is fullfilled nothing to do here."),
Patch
(
OPTrack_FormsInventoryEnhancedTables,
wLookUp,
{
FORM_NO: ddl_Form_No_2.Selected.Value,
WAREHOUSE: ddl_From_Warehouse_2.Selected.Value,
ON_HAND: wLookUp.ON_HAND + Value(txtQtyRec.Text) ,
QUANTITY: Value(txtOnOrder.Text) - Value(txtQtyRec.Text),
LAST_INVEN: Now(),
REQ_DATE: Text(dteReqDate.SelectedDate),
DEL_DATE: Text(dtedeiverydate.SelectedDate),
REC_DATE: Text(dterecdate.SelectedDate),
QTY_REC: Value(txtQtyRec.Text) - Value(txtOnHand.Text),
COMMENT: txtComment.Text
}
);
Set(var_last_inven,dteLast_Inven.SelectedDate),
Set(var_req_date,dteReqDate.SelectedDate),
Set(var_del_date,dtedeiverydate.SelectedDate),
Set(var_rec_date, dterecdate.SelectedDate),
Set(var_qty_rec, Value(txtQtyRec.Text)),
Set(var_comment, Value(txtComment.Text)
)
)
)
);

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,246 Most Valuable Professional on at

    This is the best source article on Delegation. Understand delegation in a canvas app - Power Apps | Microsoft Learn

  • Verified answer
    rroque Profile Picture
    350 on at

    Yes it did. Thank you.  

  • Verified answer
    rroque Profile Picture
    350 on at

    Thanks y'all.  

     

    So the idea is to use delegable code instructions.  

  • Verified answer
    Pstork1 Profile Picture
    69,246 Most Valuable Professional on at

    If your data source will have more than 2,000 records then yes, you should use delegable functions and operators.

  • rroque Profile Picture
    350 on at

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard