Skip to main content

Notifications

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 2,927

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"

  • JAngle Profile Picture
    95 on at
    RE: API Purchase Header dimensions not tranfering to lines

    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?

  • Samantha73 Profile Picture
    2,927 on at
    RE: API Purchase Header dimensions not tranfering to lines

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

  • JAngle Profile Picture
    95 on at
    RE: API Purchase Header dimensions not tranfering to lines

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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans