Hello - I've read a number of posts on this topic (and think my code is close), but I still am getting errors while attempting to patch a collection to a Sharepoint list. I am not patching to all the Sharepoint columns - just those specified using the ShowColumns function.
Sp list name: 'InventoryOrders'
collection name: colMyCart
Code:
UpdateContext({showLoading: true});
// insert a new row for each product ordered into the SharePoint list
Patch(
'InventoryOrders',
ForAll(
colMyCart,
Defaults('InventoryOrders')
),
ShowColumns(
colMyCart,
"ProductId",
"ProductName",
"Model",
"Color",
"Quantity",
"PricePer",
"UserName",
"UserID",
"UserEmail"
)
);
UpdateContext({showLoading: false});
Navigate(PlaceOrderScreen);
The error:

And the Sharepoint list columns ( I should note the actual names of the columns are field_1, field_2, etc, but with the setting to use display names in columns, the app seems to be recognizing their actual names):

It appears it is expecting a record rather than a table eventhough I have the ForAll function included.
Thank you to anyone who can assist.
Kendra
@kky1