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
Anonymous
Not applicable

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
Anonymous
Not applicable

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. 

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

 

Office365Users.MyProfileV2().displayName

 

Thank you very much!!!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,195)