Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / How to access the D365...
Finance forum
Suggested answer

How to access the D365FO's tables in the C# project?

Posted on by 79
Hi experts,
 
I am trying to write some C# API that will integrate with Dynamics 365 Finance and Operations. I would like to use the D365FO tables in the C Sharp code. However, I get the error stating that /The type or namespace name 'ads_EInvoiceParameters' could not be found (are you missing a using directive or an assembly reference)/. Hence, I would like to know what assembly I should add in order to use the Dynamics 365 FnO tables in the C# code.

I really appreciate to any guidance and answer provided.
 
Thank you.
 
Best regards,
Yue Zhen
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 225,058 Super User on at
    How to access the D365FO's tables in the C# project?
    Then I suggest using OData (you can generate C# classes from OData metadata and work with the data in an object-oriented manner, or going through Dataverse (see Work with data using code in Microsoft Dataverse).
  • Yue Zhen Profile Picture
    Yue Zhen 79 on at
    How to access the D365FO's tables in the C# project?
    Hi all,
     
    I am sorry for my late response.
     
    What I am actually trying to do is I am trying to write the code to retrieve the invoice data from FnO, then submit it to our government through the API.
     
    The file that will be submitted to government must be in XML format. So, I was asked to use UblSharp to generate the XML.
     
    Thank you.
     
    Best regards,
    Yue Zhen
  • Layan Jwei Profile Picture
    Layan Jwei 4,092 Super User on at
    How to access the D365FO's tables in the C# project?
    Hi Yue,

    What are you trying to do with those tables once you have access to them in C#? Do you want to get data from those tables? then there are integration methods provided by Microsoft to do that. So we need to understand what you are trying to do in order to help you.

    But here are some links about c# and D365 (not sure if they will help)
    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/write-business-logic
    https://community.dynamics.com/blogs/post/?postid=88f9ae7c-bd65-4ed4-9ef5-aec698c58f85

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 3,243 on at
    How to access the D365FO's tables in the C# project?
    Hi,
     
    Do you want to integrate with D365 FO then you should use one of D365 FO integrations like OData API calls:
     
    Check the below link, it maybe helps you:
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Martin Dráb Profile Picture
    Martin Dráb 225,058 Super User on at
    How to access the D365FO's tables in the C# project?
    Please tell us more about the application you're trying to build.
     
    For example, if you're developing a web application that will communicate with F&O, you call F&O web service endpoints, e.g. the OData service. Another approach is going through Dataverse (virtual entities).
     
    What language you'll use isn't very important for these decisions about architecture.

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,700 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,058 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans