I'm pulling my hair out for 2 days now and I have no idea if what I am wanting to do is feasible.
I have a collection that grabs data from a SP list called Skills. One of the columns called Workgroup will be used to store values from a multi-select combo box. So I created it as a table.
This is what I did
ClearCollect(colSkillsFoH, AddColumns(ShowColumns(Filter(Skills, Portfolio.Value = "Front of House"), ID, Title, Portfolio), Workgroup, Table({Value: ""})));
I have then added a multi-select combo box into my gallery. On the OnSelect property of the combo box I need to be able to patch or update the selected items from the combo box back to the Workgroup table column that I have created in my collection but to no avail.
Patch(colSkillsFoH, LookUp(colSkillsFoH, Title = ThisItem.Title), {Workgroup:{Value: ThisItem.Value}})
It is failing because it expects that the Workgroup column contains a table but is seeing a Record (which makes sense).
I also tried it this way but it's failing on Value. It's also saying that it's expecting a Table value but of a different schema.
Patch(colSkillsFoH, LookUp(colSkillsFoH, Title = ThisItem.Title), {Workgroup: Collect(LookUp(colSkillsFoH, Title = ThisItem.Title).Workgroup, {Value: ThisItem.Value})})
How do I get those values to be stored in a table? Is it possible?
My plan is once those values are patched. I will then patch the entire collection to another SP list where the Workgroup column is a multi-select choice column.
Seriously, I can do this with one value but dealing with multi-select values is driving me nuts!
Patch(
colSkillsFoH,
LookUp(
colSkillsFoH,
Title = ThisItem.Title
),
{Workgroup: Self.SelectedItems}
)
{Workgroup: ComboBoxName.SelectedItems}
yesterday and for some reason it wouldn't work. There could be a combo of factors as I was trying out too many stuff to the point my app kept crashing lol. I removed my brackets for [ThisItem.Workgroup] in the DefaultSelectedItems property which was causing it to fail (thanks for point that out). And I have to make sure that I put the patch command on the OnChange property as well.Patch(
colSkillsFoH,
LookUp(
colSkillsFoH,
Title = ThisItem.Title
),
{Workgroup: ComboBoxName.SelectedItems}
)
ThisItem.Workgroup
WarrenBelz
44
Most Valuable Professional
mmbr1606
41
Super User 2025 Season 1
MS.Ragavendar
36