How to use C# models in MS Dynamics F&O

How to use C# models in MS Dynamics F&O

March 7, 2023

9:46 am

The integration or consume third-party APIs in D365 Finance & Operations, we need to design models (Contract class) in first step to deserialize the JSON which is difficult to make for huge JSON, so i design the solution that, write the code of consuming API in C# Library and return the model in D365 F&O and use them.

Steps are below:

1st Step

We need to create c# Class library and create a model class or past special, it will converted to models automatically .

This will help you to create huge JSON model in just one click.

After all this process build the C# Library and get the dll

2nd Step

Goto the D365 F&O project reference and browse the dll and add that into your project.

3rd Step

Write the code to call the C# Library method from D365 F&O using x++

By using above steps you can use C# models in D365 F&O and implement the solution .

Related Post

Get Your Free Consultation!

Engage with our experts to identify the best solutions for your business.

Book Your Free Consultation

Hire the Services of a Premier Microsoft Dynamics 365 Business Central Partner

×

Hello!

Click one of our contacts below to chat on WhatsApp

×