Hoping for some help here everyone. This app was working, but at some point has stopped, and now the code is wrong.
I have a gallery (bottom section) where users can add line items. When the user clicks the green check mark it submits to a Collection successfully (patch code below).
Patch(
colExpenses,
ThisItem,
{
LineDate: lineDate.SelectedDate,
LineSupplier: lineSupplier.SelectedText.Value,
LineItemDesc: lineDescription.Text,
LineFunding: lineFunding.SelectedText.Value,
Line_Cost: Value(lineCost.Text)
}
);
Collect(
colExpenses,
{
LineDate: Today(),
LineSupplier: "",
LineItemDesc: "",
LineFunding: "",
Line_Cost: 0,
MasterID: ""
}
);

When the user completes all required fields the Submit button is active. The button submits the form (top half), then on the forms OnSuccess property I have the below code to Patch the Collection to the SharePoint List.
//Patch (save) all line item expenses
ForAll(
colExpenses,
If(!IsBlank(LineItemDesc),
Patch(
ItemizedList,
Defaults(ItemizedList),
{
DateOfActivity: LineDate,
//Suppliers: LineSupplier,
ItemDescription: LineItemDesc,
Cost: Line_Cost,
//FundingSources: LineFunding,
MasterID: formMiscExpense.LastSubmit.ID
}
)
));
Refresh(ItemizedList);
And this is what is submitted to the list:

Here is a bit of further info:
Properties:
- Gallery's Data Source: colExpenses
- Supplier Drop Down
- Name: lineSupplier
- Default: ThisItem.LineSupplier
- Items: Sort(Suppliers.Title,Descending) ("Suppliers" is another list that I lookup from)
- Funding Drop Down
- Name: lineFunding
- Default: ThisItem.LineFunding
- Items: colFunding (this is a collection that populates on AppStart from another SharePoint List called 'FundingSources'
I get no errors on the app, but it is not submitting properly, as it used to. So it patches to the Collection great. Its just not patching to the 'ItemizedList' SharePoint list Properly.
Any help is appreciated, and thank you in advance to this great community!
Eric