Announcements
Hi!
Does anybody know how we can assigne Dimension Values to Invoices via API '?
Thank you very much for your help
Best regards
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"
}
]
}
Please try this
Hi Thank you for your fast response! Which Base API would you use for this ? Sales Invoice Lines?
Hi,
You can try to pass Shortcut Dim1 and Shortcut Dim2 with the API.
Thanks.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator