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

Announcements

No record found.

News and Announcements icon
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
    238,734 Most Valuable Professional on at
    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
    9,061 Super User 2026 Season 1 on at
    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,165 Super User 2026 Season 1 on at
    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
    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
    238,734 Most Valuable Professional on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans