Hi @tbrew ,
Firstly, please make sure how many records existed in your ColInventory collection when you executing your ForAll formula.
According to the formula that you mentioned, each time, you execute your ForAll formula, the ColInventory collection should only contains one record at most, because, you use the ClearCollect function rather than the Collect function.
So I guess this issue may be related to the 'PowerApp->Createitem'.Run() formula. According to this formula, I think you have added a "Create item" action in your flow to add new entry into your 'Inventory by apps' List with values passed from your canvas app.
Please remove the 'PowerApp->Createitem'.Run() formula from your "Submit" button, just execute the following formula:
ClearCollect(
ColInventory,
{
Title: Title1.Text,
Skuu: Subtitle1.Text,
StoreNum: TextInput6.Text,
Quan: TextInput7.Text
}
);
ForAll(
ColInventory,
If(
!IsBlank(ColInventory[@Quan]),
Patch(
'Inventory by apps',
Defaults('Inventory by apps'),
{
Product: ColInventory[@Title],
'Sku #''s': ColInventory[@Skuu],
'Store Number': ColInventory[@StoreNum],
Quantity: ColInventory[@Quan]
}
)
)
)
Please take a try with above solution, then check if the issue is solved. If the solution I provided in your previous thread could solve your original issue, please consider go ahead to click "Accept as Solution" to identify my reply as solution and close your previous thread. Your previous threads as below, please consider close them:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Struggling-with-formula/td-p/608923/page/2
https://powerusers.microsoft.com/t5/Building-Power-Apps/For-all-and-Patch-formulas/td-p/611618
If you still have some issue with your scenario, please consider open new thread in our community, describe your issue there, then we could help you there.
Best regards,