Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Integrating Dynamics NAV with ERP Application(.net)

Posted on by Microsoft Employee

Hai, I am new to Microsoft Dynamics Navision. actually am working on civil & real Estate ERP Application Developed in .Net Technology. Now we Want to Integrate our App with Dynamics Navision. we installed NAV Application in our Server .I want to communicate NAV server from our  .Net Application such as checking company name, creating new company and creating Groups and Ledgers for Finance Module etc.., any one please help me.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Hai Stefano, I published a web service in NAV. it generated the API URL. If i directly paste that url in browser it is giving json result. but if i am requesting that service through AJAX i could not receive the response. (Actual problem is when i request to that service totally three times request got fired automatically and third request only giving proper response. But i cant receive that third response.This information i got by using fiddler) Can you give any suggestions for this issue

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    I think that you need to check the license associated to the NAV server. Please check that it’s a partner or customer license.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Thank You Stefano, I will try and let you know the solution. now i created one more comapany in NAV server. after that my Nav Server is not  opening it is giving me one error message like

    "Could not open the '' company.

    Your program license permits a maximum of 2 non-demonstration companies.

     Contact your system administrator to set up additional companies.

     You can create an unlimited number of demonstration companies.

     Their names must start with "CRONUS*".

    "

    can you tell me what i should do for this .

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Just publish the NAV Page you need as web service (for example the G/L Account List) and use the Create method iteratively.

    In code, you can create a list of G/L Accounts with a description, then loop through this list and call the Create method for every record.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Hai is there any inbuilt webservice for creating Group Ledger .can you tell me. Because am not aware of C\AL Programming

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    When you expose a page as a SOAP web service, you expose a default set of operations that you can use to manage common operations such as Create, Read, Update, and Delete. You can create a G/L Account from an external app (and this is the standard way to do so).

    If you want to use a codeunit:

    1) create a codeunit (ex. 50000 WS GL Account)

    2) Create a function in this codeunit called CreateGLAccount with parameters you want and set it to Local = NO

    3) Publish the codeunit (50000 in this sample) as web service from NAV

    4) Call the function in this codeunit from your external app.

    More info here:

    https://msdn.microsoft.com/en-us/library/dd339004.aspx

    https://msdn.microsoft.com/en-us/library/dd355316.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Thank you Stefano ,

    i published page 17. it is giving result as set of G\L already Created with NAV App. I want to Create it from my App. in your second point you said to publish custom code unit. can you tell how to publish a custom unit to crate a G\L  through web service

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    It's quite easy. Possible methods:

    1) Publish Page 17 as web service and use the exposed methods

    2) Publish a custom codeunit as web service from NAV (that accepts your parameter for creating a G/L account, like Name, type and so on)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Hai can any one tell me how to create a G\L Account through WebService.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integrating Dynamics NAV with ERP Application(.net)

    Thank you Jonathan i will go through your links and inform you about solution

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans