Hi @bllknight007 ,
Use this Formula:
Patch(
'Employee Data',
If(varRecordType="New", Defaults('Employee Data'), varItem),
{
Title: TextInputCanvas1.Text,
Department: DropdownCanvas2.Selected,
Age: Value(TextInputCanvas2.Text),
'Hire Date': DatePickerCanvas1.SelectedDate,
'Exit Date': DatePickerCanvas2.SelectedDate,
Salary: Value(TextInputCanvas3.Text),
Skills: ForAll(ComboboxCanvas1.SelectedItems, {Value: Value}),
Active: CheckboxCanvas1.Checked
}
)
In this formula, ForAll(ComboboxCanvas1.SelectedItems, {Value: Value}) creates an array of records with a Value field, which is the format expected by SharePoint for multi-select choice fields.
If you still encounter issues, make sure the names of the controls (ComboboxCanvas1, TextInputCanvas1, etc.) match exactly with those in your app. Also, ensure that the column names (Skills, Title, Department, etc.) match with the internal names of your SharePoint list's columns.
If the Skills column is a 'Lookup' column in SharePoint, the approach would be different, and you would have to use the Id of the selected items.
Best Regards,
Hassan Raza