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 / Populate a Text Field ...
Power Apps
Answered

Populate a Text Field Based on User Login

(0) ShareShare
ReportReport
Posted on by 7

Hi all,

 

I am new to Power Apps and am building a canvas app to collect metrics from users using a SharePoint list to store the data. I am trying to auto-populate a text field (titled "Program") based on the user that is logged into the app/Officer365. For example: When the program manager for Program A loads the form, the "Program" text field auto-populates and displays the name of that manager's program.

In a second SharePoint list I have all my programs listed (Program A, Program B, Program C, and Program D) in a text column titled "Programs" and the manager in another person/group column titled "managers" that I am using to reference the program manager for each program. 

Any help would be appreciated. Thanks.

Categories:
I have the same question (0)
  • Verified answer
    ali_ruman Profile Picture
    20 on at

    as i understood these programs must have different managers assigned ,
    so u can use Lookup to populate your text field based on the current user of the application just use formula
    LookUp(ProgramTable,managers.DisplayName=User().FullName).Programs   
    in your text field

  • seljm1 Profile Picture
    7 on at

    Thanks @ali_ruman!

     

    The formula you provided got me on the right track and helped remove the errors I was receiving. The formula however was not populating the text field. I made one small change and ended up with the following:

    LookUp(ProgramTable,'managers'.DisplayName=Officer365Users.MyProfile().DisplayName).Programs 

     

    Thanks again for the help.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard