Hi
I´m really suck and hope you guys can help me. I have a sharepoint list called "Elevlogg" which logs info about students.
It has a tile and a description fiel which are both plain text, a date field and four dropdowns. Three of them gets data form the "Elevlogg" list as choices. Skoleår (School year), Klasse and Kategori. Choices([@Elevlogg].Skoleår), Choices([@Elevlogg].Klasse) and Choices([@Elevlogg].Kategori). The fourth dropdown gets its values from another list lokkup Aktive elever), wihch has Klasse (class) and Elev (student) as columns. It is populated by Filter('lookup Aktive elever'; Elev = ddKlasse.Selected.Value).Elev.
So far so good. But when i try to patch this form to an new record, i run into problems.
ive tried something like:
Patch(Elevlogg; ThisItem;{Title: CinputTitle.Text; Skole_x00e5_r: CddAar.Selected; Klasse: CddKlasse.Selected; Elev: CddElev.Selected; Kategori: CddKategori.Selected; Dato_x0020_for_x0020_hendelse: CcalDato.SelectedDate; Beskrivelse: ClblBeskrivelse.Text}))
(Cdd.... are the names of the various dropdowns)
Also tried something to patch the Elev-field likae:
Elev: {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
ID: LookUp('Aktive elever og foresatte'; DisplayName= CddElev.Selected.'Compliance Asset Id'; ID);
Value: CddElev.Selected
}
But as you might see nothing wrks, i am in way over my head and any help to point me in the right direction will be appreciated.