Hello,
I have a modeldriven App where I want to populate a lookup field (systemusers) when I open the form.
What I found was, that I need to have an array of lookup objects wich I want to insert.
this is the code in I try to use:
let lookupData = [
{
"entityType": "systemuser",
"id": "{<the-ID-of-the-entity>}",
"name": "Name Surname"
}
]
formContext.getAttribute('lookupfield').setValue(lookupData);
Would be nice if someone has some Idea.
Thank you!