web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

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

(1) ShareShare
ReportReport
Posted on by 147
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
I have the same question (0)
  • Martin Dráb Profile Picture
    236,353 Most Valuable Professional 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.
  • Suggested answer
    Waed Ayyad Profile Picture
    8,961 Super User 2025 Season 2 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
     
  • Layan Jwei Profile Picture
    8,049 Super User 2025 Season 2 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
  • Yue Zhen Profile Picture
    147 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
  • Suggested answer
    Martin Dráb Profile Picture
    236,353 Most Valuable Professional 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).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,028

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 878 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 579 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans