Greetings,
I am attempting to patch a collection to a table because I need to add multiple values from a combo box to my table. This guide I am following shows me how to, but with a SP list. I have tried my best to follow along, but have ran into some issues. The following code is the code I have tried:
ForAll(
ComboBox1.SelectedItems,
Collect(
colCoatingsToPatch,
{
Coating: ThisRecord.Coating
}
)
);
Patch(
RollerData,
Defaults(RollerData),
{
coatingMultiple: colCoatingsToPatch
}
);
where Coating is a text data type and coatingMultiple is a Lookup. I have also tried changing Coating to coatingMultiple in the Collect function which doesn't work. coatingMultiple in the Patch function expects a Record, but is given a Table.
Any help is appreciated, thank you.