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...
Answered

Assigne Dimension Value to Sales Invoice API

(0) ShareShare
ReportReport
Posted on by

Hi! 

Does anybody know how we can assigne Dimension Values to Invoices via API '?

Thank you very much for your help

Best regards

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    You can try to pass Shortcut Dim1  and Shortcut Dim2 with the API.

    Thanks.

  • Sleina Profile Picture
    on at

    Hi Thank you for your fast response! Which Base API would you use for this ? Sales Invoice Lines?

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Please try this

    api.businesscentral.dynamics.com/.../salesInvoiceLines

  • Verified answer
    Lars Lohndorf-Larsen Profile Picture
    on at

    Hello,

    I happen to have an example of creating a purchase order and assigning dimensions - below. Does that help you?

    Here is an example from the sdandard API PurchaseOrders, using Navigation properties on the API to create both lines and dimensions:

    purchaseOrder resource type - Business Central | Microsoft Docs

    POST api.businesscentral.dynamics.com/.../purchaseOrders

    BODY

    {

    "vendorNumber": "40000",

    "purchaseOrderLines":

    [

    {"itemId" : "3d0b2413-b0fd-ea11-bb48-000d3a2fece2"}

    ]

    ,

    "dimensionSetLines":[{

       "code": "DEPARTMENT",

       "valueCode": "SALES"

    }

    ]

    }

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