Graph API Response: Could not find a property named 'telephoneNumber' on type 'Microsoft.OutlookServices.Contact'

by Best Dev Tutorials   Last Updated October 16, 2019 01:26 AM - source

I'm receiving the response "Could not find a property named 'telephoneNumber' on type 'Microsoft.OutlookServices.Contact'" from my API call.

I've tried other fields that work just fine such as jobTitle, in this list: https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/api/entity-and-complex-type-reference

My API call uses a bearer token and is in the following format:

https://graph.microsoft.com/v1.0/users/{{MY CONTACT ID}}/contactFolders/{{ FOLDER ID HERE}}/contacts?$select=displayName,fileAs,emailAddresses,businessPhones,mobilePhone,homePhones,department,telephoneNumber&top=999

I would expect for telephoneNumber to be part of the response, but I get an error instead.



Answers 1


The API that you are calling is Microsoft Graph API(https://graph.microsoft.com), the link you provided is the Contact Entity in Azure AD Graph API(https://graph.windows.net). The two APIs are different, in your case, you need to check contact resource type in Microsoft Graph, obviously, there is no telephoneNumber property.

Joy Wang
Joy Wang
October 16, 2019 01:25 AM

Related Questions


Adding Owners to Azure AD Group via Python sdk

Updated March 19, 2019 08:26 AM