SP List - Json Custom View Question

%3CLINGO-SUB%20id%3D%22lingo-sub-2281652%22%20slang%3D%22en-US%22%3ESP%20List%20-%20Json%20Custom%20View%20Question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281652%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20a%20view%20that%20is%20a%20custom%20display%20..%20we%20basically%20want%20the%20people%20hover%20card%20but%20we%20wanted%20to%20add%20their%20email%2C%20job%20title%20and%20phone%20beneath%20the%20picture%20and%20name...%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20that%20all%20working%20except%20for%20the%20business%20phone.%20I%20can%20see%20the%20value%20of%20the%20business%20phone%20when%20I%20hover%20over%20the%20person%20so%20we%20know%20it's%20there...%20The%20column%20name%20is%20%22TC%22%20and%20I%20tried%20TC.businessphone%20and%20TC.phone.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20would%20I%20access%20the%20business%20phone%20number%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2281652%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2282407%22%20slang%3D%22en-US%22%3ERe%3A%20SP%20List%20-%20Json%20Custom%20View%20Question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2282407%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1033988%22%20target%3D%22_blank%22%3E%40sasrsc2415%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20people%20fields%20only%20supports%20the%26nbsp%3B%3CSPAN%3Efollowing%20properties%20(with%20example%20values)%20in%20JSON%20formatting%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%20%22id%22%3A%20%22122%22%2C%0A%20%20%20%22title%22%3A%20%22Kalya%20Tucker%22%2C%0A%20%20%20%22email%22%3A%20%22kaylat%40contoso.com%22%2C%0A%20%20%20%22sip%22%3A%20%22kaylat%40contoso.com%22%2C%0A%20%20%20%22picture%22%3A%20%22https%3A%2F%2Fcontoso.sharepoint.com%2Fkaylat_contoso_com_MThumb.jpg%3Ft%3D63576928822%22%2C%0A%20%20%20%22department%22%3A%22Human%20Resources%22%2C%0A%20%20%20%22jobTitle%22%3A%22HR%20Manager%22%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESource%3C%2FSTRONG%3E%3A%26nbsp%3B%3CA%20title%3D%22Special%20string%20values%20-%20People%20fields%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fcolumn-formatting%23special-string-values%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESpecial%20string%20values%20-%20People%20fields%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%26nbsp%3B%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%26nbsp%3B%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2281699%22%20slang%3D%22en-US%22%3ERe%3A%20SP%20List%20-%20Json%20Custom%20View%20Question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281699%22%20slang%3D%22en-US%22%3ENope%2C%20good%20thought%20though...%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2281689%22%20slang%3D%22en-US%22%3ERe%3A%20SP%20List%20-%20Json%20Custom%20View%20Question%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281689%22%20slang%3D%22en-US%22%3ETC.Telephone%3F%3C%2FLINGO-BODY%3E
New Contributor

I am working on a view that is a custom display .. we basically want the people hover card but we wanted to add their email, job title and phone beneath the picture and name...

I have that all working except for the business phone. I can see the value of the business phone when I hover over the person so we know it's there... The column name is "TC" and I tried TC.businessphone and TC.phone. 

How would I access the business phone number?

3 Replies
TC.Telephone?
Nope, good thought though...

@sasrsc2415 

 

Currently people fields only supports the following properties (with example values) in JSON formatting:

 

{
   "id": "122",
   "title": "Kalya Tucker",
   "email": "kaylat@contoso.com",
   "sip": "kaylat@contoso.com",
   "picture": "https://contoso.sharepoint.com/kaylat_contoso_com_MThumb.jpg?t=63576928822",
   "department":"Human Resources",
   "jobTitle":"HR Manager"
}

 

SourceSpecial string values - People fields 


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.