cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyberco01
Level 8

To set the created by field for new and edit form in powerapps

I have a powerapps form linked to Sharepoint List. The powerapps form has a created by field the system generated author field which is of type Person/ Group in list and a combobox type in Powerapps form. On creation of new item, i need this to be populated by the logged in user and then that user will fill in the details and SAVE/ Submit form. Therefore, the Created By field is the one who was logged in . Now, when the list item is opened in Edit Mode i need the Created By field to be populated in the same field.

Kindly help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: To set the created by field for new and edit form in powerapps

You can easily display the name of the current user in a field on the new Form.  You just can't Submit that field when creating the record. Just add a Text field and set the Text value to User().FullName. But as you've noted the system doesn't set the Created By field until after the record is saved and there is no way for you to override the system and set it yourself.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: To set the created by field for new and edit form in powerapps

The Created By field is a system field and its very difficult to make any changes to it.  But if a logged in user uses a PowerApp to create a new item then they will be listed in the Created By field because they created the item. When they edit it then their name will be listed in the Modified By field and the Created By will remain the original createor of the list item.  That's the way SharePoint is designed to work.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
cyberco01
Level 8

Re: To set the created by field for new and edit form in powerapps

The Created By field will be stamped only after Save / Submit. I need the name to be displayed when the user clicks on New also.

Highlighted
Dual Super User
Dual Super User

Re: To set the created by field for new and edit form in powerapps

You can easily display the name of the current user in a field on the new Form.  You just can't Submit that field when creating the record. Just add a Text field and set the Text value to User().FullName. But as you've noted the system doesn't set the Created By field until after the record is saved and there is no way for you to override the system and set it yourself.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support Team
Community Support Team

Re: To set the created by field for new and edit form in powerapps

Hi @cyberco01 

 

If @Pstork1 's suggestion fix your issue,please accept it as solution.

And more information:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-current-user

 

Best Regards.

Yumia

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 220 members 6,434 guests
Please welcome our newest community members: