cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pperrot1
Helper I
Helper I

Setting Dropdown input field Default Value to Logged User Name

Hello,
I have a couple of dropdown inputs that serve as inputs to a gallery based on a Sharepoint list (Projects List). Once selected, the ˜project details˜ Edit Form opens for editing on a side gallery.

The project list has a ˜Responsible Person˜ column filled with a user assigned to each project.

 

One of my filtering dropdowns is based on that ˜Responsible Person˜ column. The Items formula to the dropdown is: Sort(Distinct(Projects List,'Responsible Person'.DisplayName),Result,Ascending)

 

I want that dropdown input to default to the logged User's name on start (so that the user can go straight to his assigned projects), but I also want them to be able to select other team members' names and be able to edit their projects in case they are on vacation, etc. How do I set that default value? Also.. .DisplayName doesn't seem to be a function that the Dropdown input understands.
Please help!

2 ACCEPTED SOLUTIONS

Accepted Solutions
EricLott
Super User
Super User

In the dropdown box's Default property, you can use this formula, assuming the display name in your source is their O365 username.

Office365Users.MyProfileV2().mailNickname

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

View solution in original post

Yes, it worked!
I just had to tweak the formula to:

 

Office365Users.MyProfileV2().displayName

 

Thank you very much!!!

View solution in original post

2 REPLIES 2
EricLott
Super User
Super User

In the dropdown box's Default property, you can use this formula, assuming the display name in your source is their O365 username.

Office365Users.MyProfileV2().mailNickname

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

View solution in original post

Yes, it worked!
I just had to tweak the formula to:

 

Office365Users.MyProfileV2().displayName

 

Thank you very much!!!

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,287)