Skip to main content

Notifications

Announcements

No record found.

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

Method /api/beta/companies(....)/customers doesn't return the Customer status.

Posted on by 443

Hello Team,

To integrate Customers from Microsoft Navision we use the following endpoint: host:port/ DynamicsNAV110/api/beta/companies(.....)/customers

But, Navision doesn't return the Customer status. How to receive the Customer status?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,698 Super User 2024 Season 2 on at
    RE: Method /api/beta/companies(....)/customers doesn't return the Customer status.

    Hi, as Lars suggest, you should create a new page, and publish it to web service.

    But for NAV2018, you need development licence and object range. Therefore, it is recommended that you test with a partner who has a development license.

    Hope this will help.

    Thanks.

    ZHU

  • Andrew1986 Profile Picture
    Andrew1986 443 on at
    RE: Method /api/beta/companies(....)/customers doesn't return the Customer status.

    Hello Lars,

    Thank you for the information.

    I have researched the Microsoft Dynamics NAV Development Environment.

    Also, I tried to create the Codeunit web service using Object Designer.

    But, as I understood this approach should comply with the following rules:

    - The Customer should have the DEV Licence to work with the Object Designer

    - The Customer should have special roles in the Licence to create Codeunits

    Currently, for the research, I use the demo version of Navision 2018. The demo version doesn't include roles to create Codeunits. So, I cannot check how it works.

    So, if the Customer will not have the necessary license, I cannot integrate my app with his Navision account.

    Is it correct?

  • RE: Method /api/beta/companies(....)/customers doesn't return the Customer status.

    Hello,

    You can suggest modifications to our API, which happens in an open way here: github.com/.../ALAppExtensions . However this will be for newest version, and not backported to NAV2018. For NAV2018 you can make your own web services, either with API, or in a more simple way create a page, then expose it as a web service and call that via odata.

    There is a good starting point here docs.microsoft.com/.../web-service-walkthroughs . I would first to the method which is: Create a new list page with the fields you need, then go to "Web Services" and expose your new page, which will give you an OData link.

    For future versions, API is the way, and the syntax may vary a bit. One good starting point for that is here community.dynamics.com/.../how-to-create-custom-api-page-in-dynamic-365-business-central-v15-cloud . But I cannot guarantee that all api features work well with NAV2018.

    But in short: Create a new page, then expose it as a web serivce, gives you OData and SOAP in a very few steps, so that would be my suggestion to begin with.

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