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 determine first...
Power Apps
Answered

How to determine first time users

(0) ShareShare
ReportReport
Posted on by 278

How can you determine if a user is opening a Power App for the first time?

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @duncant 

    Make a new SharePoint list called 'MyAppUsers'.  Create a new column single line text column called 'UserEmail.  Connect this SharePoint list to your app.

     

    Now in the OnStart property of your app input this code

    If(IsBlank(Lookup(MyAppUsers, UserEmail=User().Email),
     Set(newUser, true),
     Patch(MyAppUsers, Defaults(MyAppUsers), {UserEmail: User().Email});
     Set(newUser, false)
    )

     

    When a user cannot be found in the MyAppUsers list the newUser variable is set to true and the user's name gets written into the list.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • duncant Profile Picture
    278 on at

    @mdevaney 

    What if the data source is an excel spreadsheet or CDS?  How would you go about it then?

  • mdevaney Profile Picture
    29,993 Moderator on at

    @duncant 
    Process is the same for SharePoint, Excel and CDS. Just replace the word SharePoint with your desired datasource.

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

  • madhusudhanan_d Profile Picture
    2 on at

    Bracket is missing in your code

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard