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

Dimensions in the API

(0) ShareShare
ReportReport
Posted on by 60

Hi,

We currently have an integration that is working with the REST API and we are creating a Sales Invoice and Sales Invoice Line.

However, we need to set the Cost Centre on the Sales Invoice Line which is a dimension.

Having referred to the documentation below it is unclear what calls need to be made.

https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/resources/dynamics_dimension

Our scenario is detailed below if someone could advise which API calls need to be made to achieve this. 

Our integration will have a value for the cost centre of say 100. We then need to query via the API to see if cost centre 100 exists, if it exists we then need to get the GUID and set the GUID somewhere so that the Cost Centre is associated to the Sales Invoice Line.

Thanks

Tom

I have the same question (0)
  • MButlin Profile Picture
    10 on at

    Hi

    So we are struggling a lot with this - nothing out of the box you would need an extension to create an API to create dimension values then another extension to allow you to do an API to update global dimension 1 or global dimension 2 (presuming its one of these).  If its not a global dimension then you will need to get into another extension to create dimension sets then once you have the dimension set also get an extension to update the sales invoice line dimension set.  If you work out anything easier would love to know!  We can now do all this but taken quite a few extensions to get us there.

    Matthew

  • chrisgoman Profile Picture
    12 on at

    Hi Matthew, so it is now March 2023, did you get this in better shape or any more tips?  Any guidance would be appreciated

    There is still nothing in the API V2.0 to accomplish this "out-of-the-box" even for the default dimensions.  It seems like there is a page already but you still have to create a new "API Page", then create an AL extension, then you can hit it with the REST API per below

    learn.microsoft.com/.../devenv-develop-custom-api

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,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans