web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

API Purchase Header dimensions not tranfering to lines

(0) ShareShare
ReportReport
Posted on by 3,299

Hi All

I'm inserting purchase order header dimensions only through an API call and expect the line dimensions to be automatically set to header as if you enter an order front front end. However API call only populate header level. Is there a way to populate header dimensions only and lines to get the same values?

Sample code something like

{

    "vendorNumber": "V00010",

 

    "orderDate": "2021-12-03",

    "postingDate": "2021-12-03",

    "dimensionSetLines": [

                         {

                             "code": "DEPARTMENT",

                             "valueCode": "ADM"

                         }

                        ],

 

    "purchaseOrderLines": [

        {

           

            "lineType": "Item",

            "lineObjectNumber": "1001"

I have the same question (0)
  • JAngle Profile Picture
    157 on at

    Not saying it’s the answer but does it react differently when the lines are added in a separate call?

  • Samantha73 Profile Picture
    3,299 on at

    Yes ..If I add dimensions to lines it works.

  • JAngle Profile Picture
    157 on at

    That’s not what I meant. 2 http calls overall. Call 1 - add header and dimensions. Call 2 - just lines referencing the document number created from call 1. Does this pattern result in identical dimensions at both header and line level?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,796 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 965 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans