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 :
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 ?

I have the same question (0)
  • Suggested answer
    chigivigi Profile Picture
    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.

  • RomRyan Profile Picture
    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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,477

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 3,235 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,799 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans