Hello
I have created a SharePoint list, where one of the columns is the manager's name and is a person or group type and required.
the problem is using this in DefaultSelectedItems of the DataCardValue
Office365Users.Manager(User().Email)
Office365Users.Manager(User().Email).DisplayName //this one gives error
Also tried this
If(
EditForm2.Mode = FormMode.New,
{
Value: Office365Users.Manager(User().Email).DisplayName
},
Parent.Default
)
it shows me the name in the dropdown list as already selected but when the user fills the form and submits it, the column is empty it has not saved the managers details... (this is done to avoid the user manually selecting his manager).
Using the same way when we manually select the manager from the search and submit it works...
Please let me know what could be the possible solution, thanks in advance.
Can you please provide the Items property formula for your control?
You're trying to cross SharePoint user records with Office365 User records - they are not the same.
Knowing your Items property would be helpful in providing a solution.
Hi, *bump* ... I have the exact same issue.
Did you manage to get "defaultselecteditems" to populate into Sharepoint list with current user in Power Apps?
Best regards // Jimi
Just found the solution! .. phew
uh, can you please share/link to the solution then?
Hi can you provide where you found the solution? Thanks!
User | Count |
---|---|
254 | |
106 | |
95 | |
50 | |
39 |