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

Notifications

Announcements

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

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,679 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard