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 / How to set item into e...
Power Apps
Answered

How to set item into edit form (not using detail form)

(0) ShareShare
ReportReport
Posted on by 255

Hi, 

I have problem to set "default" item into edit form. I dont use detail form. So I can't use "BrowseGallery1.Selected". 

I have ID of logged user. Depend on logged user ID, I need find the user in SP list (list of employee) and set this user into item in edit form. 

Can anybody helps me with any advice ? I tried LookUp function (maybe not in correct way), but it doest work. 
Have you some example how to make it, maybe with the right use of lookup? 
 

Categories:
I have the same question (0)
  • Jagadeeshk Profile Picture
    457 on at

    if the default required user ID then use user().email 

    if something else 
    please elaborate with steps.

     

  • Verified answer
    Pstork1 Profile Picture
    69,485 Most Valuable Professional on at

    Lookup() is the best way to do this.  If you know the value of a field in the data source that will uniquely identify the record that is what you use for the lookup.  So I'm assuming you have a list of employees in SharePoint.  If the employee is in a Person/Group column this would be the lookup.

     

    
    Lookup(SPDatasourceName, employeecolumnname.email = currentuserEmail)

    Put this in OnStart to set the variable with the currentuseremail.

    Set(currentuserEmail, user().Email); 

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard