Forum Discussion
Display email from a person column
- Oct 26, 2022
Solution 1:
You can create a power automate flow on item creation/item update to update the Email address field based on the Person or Group field.
Solution 2: Customize list forms using Power apps and set default value of email address field based on the Person or Group field.
Solution 3: If you are not going to use those email address values later (you don't need to save emails in column) and you just want to show the email in SharePoint list view then you can also achieve it using JSON column formatting.
- Create one single line of text column.
- Hide it from list forms (make it Hidden from content type settings).
- Then use below JSON code to format the column:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "[$PersonGroupCol.email]" }
Where PersonGroupCol is internal name of person or group field.
Output:
Similar thread: Get Email from user and enter into SharePoint list field
Related read: How to find the Internal name of columns in SharePoint Online?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
You can get following properties from person column using SharePoint JSON formatting. The people field object has the following properties (with example values):
{
"id": "122",
"title": "Kalya Tucker",
"email": "email address removed for privacy reasons",
"sip": "email address removed for privacy reasons",
"picture": "https://contoso.sharepoint.com/kaylat_contoso_com_MThumb.jpg?t=63576928822",
"department":"Human Resources",
"jobTitle":"HR Manager"
}
Please consider giving a Like if my post helped you in any way.