Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

SalesOrder add issue for Shipto address and Billto address in Dynamics 365 BC oDataV4 API ?

(1) ShareShare
ReportReport
Posted on by 977

Hi Expert ,

      I want to add Sales Order using oData api V4. I am able to add order without shipto and Bill to address .SalesOrder-Add-Error-Details-.txt .I have used below url for order add .

         api.businesscentral.dynamics.com/.../SalesOrder

      Please suggest what will be the exact format to add SalesOrder with Ship-To Address and Bill-To Address. I have attached my two txt file one for SalesOrder format which is added successfully and another one is different type of SalesOrder format from which i am getting different type of error . Please checked the attached file .

    SalesOrder-Add-Error-Details-.txtSalesOrder-Add-realated-data-.txt

Thanks & Regards 

Surajit Kundu

      

  • Suggested answer
    Olister Rumao Profile Picture
    3,959 on at
    RE: SalesOrder add issue for Shipto address and Billto address in Dynamics 365 BC oDataV4 API ?

    Hi All,

    This is because of you take a look at the standard Sales Order Functionality then you will find that if the address is set to Default then your Address becomes Customer Master Address, If you use Alternate Shipping Address then it will ask you for the Alternate Shipping address code and only when you select Custom Address, your Sell to Address fields will be visible.

    A simple workaround would be create a list of custom fields in Sales Header table with extensions and fill the custom fields with the address that you want whenever your Shipping Address Options are selected and then integrate it in your Custom API by copying the existing SalesOrderAPI and adding the new fields in it.

    I would highly recommend taking a look that the API code as it shall give you more clearity.

    Hope this helps.

    Let me know if you need more with this.

  • BCgs Profile Picture
    468 on at
    RE: SalesOrder add issue for Shipto address and Billto address in Dynamics 365 BC oDataV4 API ?

    We’re having a similar issue, our API won't let us set a shipping address. There is an option to change the shipping address option (like the dropdown on BC). Here's what it says if I set it to something different to what it should be:

    not an option. The existing options are: Default (Sell-to Address),Alternate Shipping Address,Custom Address

    But when set to Custom Address, it still won't let us use a custom address!

    Property \"Editable\" for Ship-to Name is invalid. Expression: [p42ShipToOptions = p42ShipToOptions::\"Custom Address\"]

    Anyone else experiencing 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 367 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 242

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 226 Most Valuable Professional

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans