graphUser almost fully NULL - Graph API
When I'm reading the profile and wanting to collect all of it's outlook contacts it's says NULL even tho it should be 1 contact. The website https://developer.microsoft.com/en-us/graph/graph-explorer/ is able to give me the list of contacts.
Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph
Try the Graph Explorer developer tool to learn about Microsoft Graph APIs. Includes code snippets, Microsoft Graph Toolkit, and Adaptive Cards integration.
1 Reply
Solved:
https://www.reddit.com/r/csharp/comments/15jqz0j/comment/jv2hjbd/?utm_source=share&utm_medium=web2x&context=3
"Looking at the edit you made I think the GetAsync on the user is different to what you’re doing on the graph explorer. I’m sure you need to call the contact endpoint the me.get… is only getting the basic data for that user."
"var result = await graphServiceClient.Me.Contacts.GetAsync();"
reddit
r/csharp - Comment by u/Swimming_Yoshi on ”Azure API contacts NULL”
2 votes and 10 comments so far on Reddit