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...
Suggested answer

Add a dimensions field to a Journal Entry via API

(1) ShareShare
ReportReport
Posted on by 112
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
  • DS-15051354-0 Profile Picture
    112 on at
    Add a dimensions field to a Journal Entry via API
    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?
  • Suggested answer
    YUN ZHU Profile Picture
    82,041 Super User 2025 Season 1 on at
    Add a dimensions field to a Journal Entry via API
    Hi, you can try deep insert with Business Central APIs.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
     
  • DS-15051354-0 Profile Picture
    112 on at
    Add a dimensions field to a Journal Entry via API
    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
     
  • Gerardo Rentería García Profile Picture
    17,885 Most Valuable Professional on at
    Add a dimensions field to a Journal Entry via API
    Hi
    I hope this can help you and give you some hints
    BR
    GR
  • Suggested answer
    YUN ZHU Profile Picture
    82,041 Super User 2025 Season 1 on at
    Add a dimensions field to a Journal Entry via 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,430 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,043 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans