This is causing an error now on my Patch when trying to update an entity with the values in the dropdown menus:
The Patch code on a Button
ForAll(
Gallery4.AllItems,
Patch(
'OneEng Candidates_Interviewers',
Defaults('OneEng Candidates_Interviewers'),
{
Candidate: Slot1.Selected,
Interviewer: Interviewer,
IVSlot: Value(Label_Slot1.Text),
Event: DropdownEvent.Selected,
MorningOrAfternoon:drpdownMorA.Selected.Value
}
)
);
ForAll(
Gallery4.AllItems,
Patch(
'OneEng Candidates_Interviewers',
Defaults('OneEng Candidates_Interviewers'),
{
Candidate: Slot1.Selected,
Interviewer: Interviewer,
IVSlot: Value(Label_Slot2.Text),
Event: DropdownEvent.Selected,
MorningOrAfternoon:drpdownMorA.Selected.Value
}
)
);
"Invalid Argument type. Expecting a record value, but of a different schema."
Is this because previously it was looking at records in the dropdown, but now it's looking at a collection?
The table I'm patching this into is expecting a record value and it seems when I create a collection, it strips away the record value. Is there a way to handle this?