Hi Everyone,
I have created a inventory app on PowerApps. Part of this app has the ability to created different templates for different locations. Once a template is created I use the Patch command to generate a inventory for the user to completed his inventory. The following is that patch command:
ForAll(
'Template Details',
If(
crdf5_TemplateNo.TemplateNo = TempNo,
Patch(
'Inventory Details',
{
crdf5_Category: crdf5_Category,
crdf5_ItemNo: crdf5_ItemNo,
crdf5_itemdescript: crdf5_itemdescription,
crdf5_inventoryunits: crdf5_Units.'Unit Type Cal',
crdf5_unitqty: crdf5_UnitQtyCal.'Unit Qty',
crdf5_InReportNo: LookUp(
'Inventory Reports',
Text(InReportNo) = DataCardValue4.Text
),
crdf5_purchasecost: crdf5_purchasecost
}
)
)
)
Considering we are patching about 300 record this process can take a long time (3min). Can any of you see a way I can performance tune this, or suggest a different approach?
Thanks