For my Sharepoint list form, I have a People column. I want this to be autopopulated depending if
Label8.Text = "ES"
The combobox is populated by the collection of 6 people named "Responsables". So, if it "ES", I need it to auto select 3 people, if not, the remaining 3. I'm guessing I'll have to write into the code their specific emails.
Right now the DefaultSelectedItems property is set to:
Filter(
Responsables;
UserPrincipalName in ThisItem.'Sharepoint People Column'.Email
)
This is the only way I managed to make it save to Sharepoint and actually retain information when editing.
Responsables is a collection made with many lines like this:
Collect(Responsables; { DisplayName: "NAME"; UserPrincipalName: "NAME@company.com"; Mail: "NAME@company.com"})