Notifications
Announcements
Hi!
Does anybody know how we can assigne Dimension Values to Invoices via API '?
Thank you very much for your help
Best regards
Hi,
You can try to pass Shortcut Dim1 and Shortcut Dim2 with the API.
Thanks.
Hi Thank you for your fast response! Which Base API would you use for this ? Sales Invoice Lines?
Please try this
api.businesscentral.dynamics.com/.../salesInvoiceLines
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,170 Super User 2026 Season 1
Dhiren Nagar 1,283 Super User 2026 Season 1
YUN ZHU 1,104 Super User 2026 Season 1