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 / Power Apps Delegation
Power Apps
Unanswered

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
    68,707 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
    68,707 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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard