web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Add a dimensions field to a Journal Entry via API

(1) ShareShare
ReportReport
Posted on by 154
Now that I have been able to add Journal Entries via an API. I would now like to add a new field to the journal Entry and fill with a department dimensions. 
 
Now would I add to the JE a department dimension by an API
 
Is this possible to do by API?
 
Thanks Keith
  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at
  • Gerardo Rentería García Profile Picture
    27,623 Super User 2026 Season 2 on at
    Hi
    I hope this can help you and give you some hints
    BR
    GR
  • DS-15051354-0 Profile Picture
    154 on at
    Thanks YUN ZHU 
     
    I could use some clarification on adding a dimension to a Journal entry line.
     
    First I already have setup a few new dimension values in Business Central.
     
    Now I want to add a new journal line by API.
     
    So I already have a dimension like "ENG" engineering set up.
     
    Now I want to add that dimension "ENG" to that journal line.
     
    Is the sequence first to add a Journal entry line then add the  dimension by using the dimensionSetLines or the create dimensionSetLines API using the ID of the journal line?
     
    Just a little confused by the sequence.
     
    Thanks
     
  • Suggested answer
    YUN ZHU Profile Picture
    103,712 Super User 2026 Season 2 on at
    Hi, you can try deep insert with Business Central APIs.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
     
  • DS-15051354-0 Profile Picture
    154 on at
    Thanks for everyones help..
     
    I do have an issue when I run the following API.
     
     
    I get the following message:
     
    "{" & vbCrLf & "  ""error"": {" & vbCrLf & "    ""code"": ""BadRequest_NotFound""," & vbCrLf & "    ""message"": ""No HTTP resource was found that matches the request URI 'https://api.businesscentral.dynamics.com/v2.0/3xxxxxxxxx/D365Env/api/v2.0/companies(xxxxxxxxxxxxx)/journals(a55699a3-cc12-ef11-9f88-000d3a74de60)/dimensionSetLines?
     
    As you can see the request can't be found.
    The journal entry is in a batch but not POSTED. Is this correct?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 676 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 483 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans