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 : F0I96+EIE5oyNCsHQAGp0n
Power Apps - Building Power Apps
Unanswered

Get users name

Like (0) ShareShare
ReportReport
Posted on 14 Feb 2024 07:23:42 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.

I have the same question (0)
  • WarrenBelz Profile Picture
    150,390 Most Valuable Professional on 14 Feb 2024 at 07:35:10
    Re: Get users name

    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

     

     

  • SpongYe Profile Picture
    5,585 Super User 2025 Season 2 on 14 Feb 2024 at 07:33:30
    Re: Get users name

    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! 🍻

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete