C
C#16mo ago
Natriss

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
Natriss
NatrissOP16mo ago
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();"
Want results from more Discord servers?
Add your server