cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

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 III
Dual Super User III

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 III
Dual Super User III

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.

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 III
Dual Super User III

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

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

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

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Users online (7,186)