Hi everyone,
We're using a combobox ('combobox_1') with values based on a lookupcolumn ('Category') in a SharePoint List ('VRT_WS_Artikels'). We want to patch the chosen values in the Sharepoint list, but it doesn't seem to work for us.
We have this:
Patch(
VRT_WS_Artikels;
Defaults(VRT_WS_Artikels);
{Title: Txt_Productnaam.Text;
Leverancier:Txt_Leverancier.Text;
'Link website':Txt_linkwebsite.Text;
Kleur:Txt_kleur.Text;
Foto:Med_artikelfoto.Image;
'Enkel voor ENG':If(Togg_ENG.Value=true;{Value: "Ja"};{Value:"Neen"});
Beschikbaar:If(Tog_kledijbeschikbaar.Value=true;{Value:"Ja"};{Value:"Neen"});
Categorie:{ID:LookUp(VRT_WS_Categorie; 'Naam categorie'=ComboBox1.Selected.ID);Value:ComboBox1.Selected.Value}
}
)
Everything works except for the 'Categorie', which is the lookupfield ofcourse.
Thanks in advance for the help!