Hello,
quick question, how do I patch multiple "selected" entries from a combobox?
My combo box is called: ComboBox1
But if only one entry is selected, then only patch that one, if several then patch all of them.
The patching process should take place as “default”.
It should be patched in a Sharepoint list. As I said, each entry individually..
My patch function:
Patch(News;
Defaults(News);
{
sent_by: User().FullName;
Regarding:TextInput_Betreff_News_2.Text;
to_employee: Concat(ComboBox1.SelectedItems;displayName & ";");
Description:RichTextEditor1.HtmlText;
'News_visible-von':dt_zeit_von_News.Value;
'News_visible-bis':dt_zeit_bis_News.Value
}
);;
I tried the following:
ForAll(
ComboBox1.SelectedItems,
Patch(
News;
LookUp(
News;
ID = ThisItem.ID // I don't know what to add, it's the first entry
);
{
sent_by: User().FullName;
Regarding:TextInput_Betreff_News_2.Text;
to_employee: Concat(ComboBox1.SelectedItems;displayName & ";");
Description:RichTextEditor1.HtmlText;
'News_visible-von':dt_zeit_von_News.Value;
'News_visible-bis':dt_zeit_bis_News.Value
}
)
)