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 Apps
Unanswered

Get users name

(0) ShareShare
ReportReport
Posted on by 111

How do i get a persons name after they have submitted a form?

Valentino1_0-1707895240227.png

For now i have it set to this, i tried getting it with a patch formula, but when people would submit it would create two records in sharepoint, one was the info they put in and one was just their name without any other info as a separate record.

If anyone can help, i would appreciate.

Categories:
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Valentino1 

     

    You can use the User() function to get the user information

    User().FullName // to get the fullname

     Or

    User().Email // to get the emailadress

     

    After the form is submitted, you can retrieve the name of the person who submitted the form using the LastSubmit function. The form has a property called OnSuccess.  This runs after the form is succesfully saved to SharePoint.

     

    In this form, add the following formula:

    Set(
     varLastRecord,
     Form1.LastSubmit
    );

    You can then retrieve the value of the 'Created By' field by using the object selector like:

    Set(varSubmitterEmail, varLastRecord.'Created By'.Email)

     Source: Capture username of the user who submitted the form

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @Valentino1 ,

    The value you need is User().FullName. The easiest way to save it is put the field on the form and hide it with the Default of the Text box

    Coalesce(
     Parent.Default,
     User().FullName
    )

    so it will retain any value in the field, but if this is a new record, will write the user's name.

     

    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

     

     

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