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

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

When we are talking about 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

No alt text provided for this image

2nd Step

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

No alt text provided for this image

3rd Step

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

No alt text provided for this image

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

Muhammad Aurangzeb Khan

MS D365 FinOps Technical Consultant at Systems ltd

2 年

Masha Allah

Almas Mahfooz

Microsoft Dynamics GP/ Power Platform Developer .

2 年

Wasif Ali good going.

要查看或添加评论,请登录

Wasif Ali的更多文章

社区洞察

其他会员也浏览了