Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

Posted on by Microsoft Employee

Hi. I need to setup value of fields "Ship-to" and "Bill-to"(see screenshot)). How I can do this in API? 
I already read info in doc but i can't find info about this fields.

_21043D0438043C043E043A04_-_4D043A04400430043D043004_-_3E044204_-2018_2D00_10_2D00_31-16_2D00_29_2D00_20.png

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

    Okay, thanks.

  • Verified answer
    Mohsin Abbas Profile Picture
    Mohsin Abbas 525 on at
    RE: How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

    I assume that after the API call, all the values a populated correctly. The issue you are facing is when you select 'Another customer' in Bill-to field, it makes all the fields editable again. Please correct me if I'm wrong.

    if the above assumption is right, then this is the default behavior of NAV. If you will choose 'Bill to another customer', it will allow you to modify fields. In order to understand this, i would recommend that you do the same process manually on Sales order page and see how it behaves.

    Please let me know if you need any further help.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

    Hi!

    Yes, sure.

    So now i try to do this via API method: dynamics_create_salesorder . And in this request in body I setup:

    "billingPostalAddress": {
        "street": "Street example",
        "city": "City example",
        "state": "State example",
        "countryLetterCode": "example",
        "postalCode": "example"
      },

    So in this case I have created order with info like prev screenshot. And if I chose Bill-to -> Another Customer, I can see and edit or add additional info.(screenshot)
    _21043D0438043C043E043A04_-_4D043A04400430043D043004_-_3E044204_-2018_2D00_11_2D00_01-10_2D00_07_2D00_14.jpg

  • Mohsin Abbas Profile Picture
    Mohsin Abbas 525 on at
    RE: How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

    Could you please provide further info about this issue?

    Have you exposed the page via webservice? And how are you currently trying to acheive this?

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans