Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Does anyone know of sample C# code for Graph Financials? Xamarin would be a bonus!
The following C# sample uses Microsoft Graph SDK and retrieves the properties and relationships of an account object for Dynamics 365 Business Central. It has the Microsoft Graph permission "Financials.ReadWrite.All"!!
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var account = await graphClient.Financials.Companies["{id}"].Accounts["{id}"]
.Request()
.GetAsync();
Here's the documentation for the above Graph API call.
In addition to the above, you can use Microsoft Graph Explorer tool to test the above Graph API calls as well.