Forum Discussion

Americo Perez's avatar
Americo Perez
Iron Contributor
Mar 26, 2019
Solved

Get user name using List view component?

Hi, I am trying to get the user name (display name) from a people column in a spfx web part using the List view component but I am getting undefined.  The column calls SalesManager (internal name) ...
  • Beau Cameron's avatar
    Mar 26, 2019

    Americo Perez Can you share what your select value is? Person field is complex field type, that you need to select the properties and expand on the field.

     .select('SalesManager/FirstName, SalesManager/LastName').expand('SalesManager')

Resources