cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyberco01 Helper V
Helper V

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

5 REPLIES 5
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 Helper V
Helper V

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.

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
Community Support

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

simb55 Advocate I
Advocate I

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

The Author and Editor fields can however be changed via PowerShell script. Has nothing to do with PowerApps, but I wanted to note that this option does exist.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,563)