Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Business Central metadata for Visual Studio OData Connection Service

(1) ShareShare
ReportReport
Posted on by 77

Business Central metadata url is not public, it requires authentication, and I am having trouble using it with Visual Studio OData Connection Service as using Network credentials does not help.

We already use the OData Connection Service with Dynamics CRM Customer Engagement to generate a class that we use for our API calls and we would like to make calls to Business Central in the same way and display the results in our frontend application.

Is there a way to generate the class with Business Central metadata url ?

  • RomRyan Profile Picture
    RomRyan on at
    Business Central metadata for Visual Studio OData Connection Service
    Hi,
    I need to insert more than one accounts from c# console app that uses the power of odata webservices in business central. I can insert one but when it's come to more than one, the errors and exceptions start popping up.
    here is my extract
    var Context = new BC19.NAV(new Uri(serviceBaseAddress));
    Context.Credentials = CredentialCache.DefaultNetworkCredentials;
    try
    {    
        var coa = new BC19.Chart_of_Accounts
        { 
            No = "111",
            Name = "Banana"                
        };
                   
        Context.AddToChart_of_Accounts(coa);
        Context.SaveChanges();
    }
    This works but if I want to insert more than one am not able. Context.AddToChart_of_Accounts(coa) doesn't allow if coa has more than one account. The issue is the same also in case of the multiple customers.
    Kindly assist
  • Suggested answer
    chigivigi Profile Picture
    chigivigi 77 on at
    RE: Business Central metadata for Visual Studio OData Connection Service

    I found a workaround. I downloaded the metadata file locally and used it as the source for the OData Connection Service so I did not need to authenticate it in the wizard.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans