Forum Discussion

JamesPhImp's avatar
JamesPhImp
Copper Contributor
Oct 26, 2022
Solved

Display email from a person column

Hi  I would have thought this would have been quite easy but can't seem to work out how to do! I have a SP list that has a Person column called Contact which links to our internal directory. I have...
  • ganeshsanap's avatar
    Oct 26, 2022

    JamesPhImp 

    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 3If 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.

    1. Create one single line of text column.
    2. Hide it from list forms (make it Hidden from content type settings).
    3. 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 threadGet Email from user and enter into SharePoint list field 

    Related readHow 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.

Resources