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 / Default Value field mu...
Power Apps
Answered

Default Value field must be current user (from sharepoint)

(0) ShareShare
ReportReport
Posted on by 58

I’m creating a PowerApp that should make it possible to keep an emergency register. Every time an emergency responder cares for an injured person, he must fill out a form afterwards. Everything is written to a SharePoint list in the background. In the SharePoint list, the field of the emergency responder is a lookup field with all users of our company. How can I ensure that the currently logged in user is automatically selected?

 

timdehaen_0-1681063268319.png

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @timdehaen ,

    The Lookup field is actually making this more difficult (you really do not need to use them) - for the sake of the code example below,I will refer to the other list as Responders and the field (I assume a Text field) looked up as Responder (you will need to change to your list/field names).

    Your issue is not so much the DefaultSelectedItems which can be

    {Value: User().FullName}

    but the Update of the Data card which now does not have the Id of the lookup column selected, so you would need

    {
     Value: ComboBoxName.Selected.Value,
     Id:
     LookUp(
     Responders,
     Responder = ComboBoxName.Selected.Value
     ).ID
    }

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • timdehaen Profile Picture
    58 on at

    The problem you described is not going to be a problem in my specific case. In this project there is only one screen to do the registration. The management of all entered data is another app. The standard 'This item' will of course remain there because you do not register with it, but our prevention advisor can add additional data to a record.

     

    I've made the mistake to use Default and not DefaultSelectedItems ... sometimes the solution can be as simple as fill in the formula in the right field 🙂

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard