question

JaaronSanderson-6234 avatar image
0 Votes"
JaaronSanderson-6234 asked Deva-MSFT edited

Graph Financials Samples

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

microsoft-graph-financials
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Deva-MSFT avatar image
1 Vote"
Deva-MSFT answered Deva-MSFT edited

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.