web
You’re offline. This is a read only version of the page.
close
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...
Unanswered

API Purchase Header dimensions not tranfering to lines

(0) ShareShare
ReportReport
Posted on by 3,255

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
    133 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,255 on at

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

  • JAngle Profile Picture
    133 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans