Forum Discussion
Document library set current user as value for custom person column when uploading file
- Jan 26, 2024
if you want a Person Field for this then you might be able to use a Flow to populate the field when new document is created.
Else you can use a Calculated Column and copy the Created By value as default, but it might be a Read-only field.
if you want a Person Field for this then you might be able to use a Flow to populate the field when new document is created.
Else you can use a Calculated Column and copy the Created By value as default, but it might be a Read-only field.
- Ljanssen86Feb 01, 2024Copper Contributor
Thank you for the reponse.
We have been able to fill the column with the created by value.
So far this seems to work for files uploaded, but not yet for newly created files. We are still looking into this.
- mvnairApr 18, 2024Brass Contributor
Ljanssen86
I tried the following json on column formatting of a new Text column to dislay the name of the Created By (or Modified by) and it works on new docs or when you upload.
You can use $Editor to display Modified By user details.{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "[$Author.title]" }