cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User II
Dual Super User II

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
Highlighted
Dual Super User II
Dual Super User II

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.
Highlighted
Post Patron
Post Patron

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

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

Highlighted
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

Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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