web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show the current logge...
Power Apps
Unanswered

Show the current logged on user in a combo box on a new form and the SharePoint value when editing the form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In a combo box, how do I show the currently logged-on user if the form is NEW and if it's not new show the information from the SharePoint list?

I have this formula on the DefaultSelectedItems of the Combo box:

If(EditForm1.Mode=FormMode.New,
 Office365Users.MyProfile(),
 ThisItem.SharepointColumn
)

This gives me an error on the entire formula.

I've tried many different variations on many different properties, but I can't seem to get the current user to display on a new form and the SharePoint value to display when editing a form.

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Anonymous - 

     

    Assuming the Items property of that ComboBox control contains something along the lines of:

     

    Choices([@'Your List'].SharePointColumn

     

    On the DefaultSelectedItems property, use:

     

    Coalesce(
     Parent.Default,
     {
     Claims: "i:0#.f|membership|" & User().Email,
     Department: "",
     DisplayName: User().FullName,
     Email: User().Email,
     JobTitle: "",
     Picture: ""
     }
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard