Hi all,
Still a novice here. I have an app that populates a Sharepoint list which includes a column for a user. This column should default to the logged in user. For the app I tried to use the Default field tried to use something like:
Office365Users.MyProfileV2(User().Email)
Wasn't sure if Email is correct or if it should be FullName. Either way, I can't get it to default to the logged in user name (or ID?). Any suggestions?
Hi Rob,
I do have Office365Users connected to the app. The issue sounds like it could be a type/format issue on how to get it to work with Sharepoint List "Person or Group" type. I do get this error:
@nitto619 make sure you add the Office 365 Users connector into your app then you can use Office365Users.MyProfile().Mail which will get the email of the current logged in user. To get their firstname and surname you would use Office365Users.MyProfile().GivenName&" "& Office365Users.MyProfile().Surname as in the image below
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional