Hi,
I have a form, which connects to a sharepoint list, where there is a field "Gäste", which is multi select and a sharepoint people pickers field.
In the field I make items of the combo box from an office lookup due to restrictions with the normal choices() Method:
'Office365-Benutzer'.SearchUser({searchTerm: Self.SearchText; top: 999})To transform it to the sharepoint people format, I use the following code in the surrounding data cards "update" property:
ForAll(DataCardValue37.SelectedItems;
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
Claims: Concatenate(
"i:0#.f|membership|";
Mail
);
DisplayName: DisplayName;
Email: Mail
}
)I can save multiple persons and also remove one or two and save. But I can't add one to existing 2 and then save. That results in a patch error.
I think that is because in my combobox I used just "parent.default" for defaultSelectedItems.
So I looked at the structure of the Office connectors respond and tried the following code:
ForAll(Parent.Default;
{
AccountEnabled: false;
BusinessPhone: [];
City: "";
CompanyName: "";
Country: "";
Department: "";
DisplayName: DisplayName;
GivenName: "";
Id: "";
JobTitle: "";
Mail: Email;
MailNickname: "";
OfficeLocation: "";
PostalCode: "";
Surname: "";
TelephoneNumber: "";
UserPrincipalName: "";
mobilePhone: ""
}
)But the formula is erroneus. It doesn't know "Email" and "DisplayName" behind the colon. I thought those might be in parent.default. I also can't glance into "Parent.Default" - IntelliSense doesn't allow.
Does someone has a hint?

Report
All responses (
Answers (