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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Display Employee ID in PowerApps form onview in SharePoint integration form

(0) ShareShare
ReportReport
Posted on by 85
i have SharePoint backend form uploaded all employee IDs in it and added formula to add the ID of employee who opened the form this is working fine
 
but i found that when the employee opened the form in View or edit the ID not displayed it became empty so is there any recommendation to solve this issue
 
want to display the ID of the user who created the item
 
tried the below but ThisItem.'Created By'.Email gives me error
Set(
    varEmployeeID,
    Coalesce(
        LookUp(
            'Database',
            Emails = ThisItem.'Created By'.Email,
            'Employee IDs'
        ),
        "ID not found"
    )
);
 
the below formula working with once the form is opened.
 
Set(
    varEmployeeID,
    Coalesce(
        LookUp(
            'Database',
            Emails =  Office365Users.MyProfile().Mail,
            'Employee IDs'
        ),
        "ID not found"
    )
);
I have the same question (0)
  • WarrenBelz Profile Picture
    151,978 Most Valuable Professional on at
    Display Employee ID in PowerApps form onview in SharePoint integration form
    There is nothing fundamentally wrong with this code
    Set(
       varEmployeeID,
       Coalesce(
          LookUp(
             'Database',
             Emails = ThisItem.'Created By'.Email,
             'Employee IDs'
          ),
          "ID not found"
       )
    );
    
    providing you are running it from inside a Gallery or Form where all fields of your datasource (I assume a SharePoint List) are available (you have not used ShowColumns or specified fields to display). Where are you running it from  - if a Gallery, what are the Items or a Form the Item and DataSource ? 
     
    Please ✅ Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
     
  • MohamedMo Profile Picture
    85 on at
    Display Employee ID in PowerApps form onview in SharePoint integration form
     
    thanks for your response but once i added it the below error appear to me.
     

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 664 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 373 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 246 Super User 2025 Season 2

Last 30 days Overall leaderboard