Hello, I am using a people picker control which I would like to populate with existing email addresses taken from a text control on a form. I can pass one email address to the control and when invoked it will automatically display. Now I am trying to pass more than one address from a collection to the control and cannot seem to get the syntax correct. Am I barking up the right tree here?
Collect( PeopleSelected, Split( dcRequestorMail.Text, "; " ) ); ForAll( PeopleSelected, With( SearchPeople, LookUp( Office365Users.SearchUser({searchTerm: PeopleSelected, top: 100}), AccountEnabled = true ) ); If( Not(SearchPeople.UserPrincipalName in MyPeople.UserPrincipalName), Collect( MyPeople, SearchPeople ) ) )
My aim is to allow the user to amend or change the emails populated in the people picker and pass them back to the forms text control.