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 :
Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Mohsin Abbas Profile Picture
    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?

  • Community Member Profile Picture
    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

  • Verified answer
    Mohsin Abbas Profile Picture
    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
    on at
    RE: How to chose Bill-to and Ship-to field value via API in Microsoft Dynamics Nav?

    Okay, thanks.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans