Notifications
Announcements
No record found.
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…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,066
YUN ZHU 658 Super User 2025 Season 2
Sumit Singh 595