Graph Financials Samples

Jaaron Sanderson 1 Reputation point
2021-03-30T17:50:30.977+00:00

Does anyone know of sample C# code for Graph Financials? Xamarin would be a bonus!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-03-31T08:56:57.947+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments