Hi there.
I'm developing a PowerApps form where some person fields are auto filled depending on the user opening said form: one it's the user who opens the form itself and the other it's their manager. On the form it works as expected, it takes the right person and shows it like it if I had open the drop down and select the person manually, but when I save it, those person fields are blank. The thing is that, if I delete that auto filled user on the form, open the drop down and select that exact same user and save, it works, so I believe the problem resides on PowerApps, but I don't know where.
I did the manager field by creating a data card using the default adding fields property of my form with the data origin, then on the data card, on the 'DefaultSelectedItems' field I wrote "Office365Users.Manager(User().Email)"
Thank you for your time,
Alex
Solved! Go to Solution.
Hi @AlexBM ,
This is because that SharePoint "person and group" column does not store the data as the way user profiles are stored in Office365 Users connection.
For using the matched format when configure the DefaultSelectedItems property of person column, you can try this formula:
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:Concatenate("i:0#.f|membership|",Office365Users.Manager(User().Email).Mail),
DisplayName:Office365Users.Manager(User().Email).DisplayName
}
Best regards,
Allen
Hi @AlexBM ,
This is because that SharePoint "person and group" column does not store the data as the way user profiles are stored in Office365 Users connection.
For using the matched format when configure the DefaultSelectedItems property of person column, you can try this formula:
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:Concatenate("i:0#.f|membership|",Office365Users.Manager(User().Email).Mail),
DisplayName:Office365Users.Manager(User().Email).DisplayName
}
Best regards,
Allen
User | Count |
---|---|
256 | |
106 | |
92 | |
47 | |
37 |