While creating a new form, I have a field that shows an Azure AD group based on a condition.
I want to get members of the group and show in another field (display names).
I also want to save the group members (display name) in a separate person-type column in the SharePoint site.
I tried using the following code but it's not saving the members when the form is submitted.
DefaultSelectedItems =
If( ApproverGroups1.Selected.DisplayName = "Approver-L1-Group",
AzureAD.GetGroupMembers("b57fa3f7-31b7-43cd-bd5b-142e36ba3cb4")
)
Thanks

Report
All responses (
Answers (