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

Journal lines currency

(1) ShareShare
ReportReport
Posted on by 2
Hello, 

we are transferring expense data to Business central and we are using journal lines to do so: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_journalline_create
 
However, there does not seem to be any currency for journal lines. Once a journal lines has been created through the API they end up in the Journal and from within business central they can then be "Posted".
In there, there is a currencyCode that can be set per journal line. There will be instances where different currencies will be used within the same journal and even booked on the same accounts. So the currency would need to be on a indvidiual journal line basis.
 
Is there a way to set this currencyCode from the API? Should we be using some other endpoint / entity / type? 
 
 
Thanks in advance.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,763 Super User 2025 Season 2 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
    Thanks.
    ZHU
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,390 Most Valuable Professional on at
    Hi
    As our colleague Yun indicates, you should extend the standard api. Here is the standard code and I don't see that it works with the currency code.
    I'll give you some other interesting urls.
    Best
    GR
  • Suggested answer
    MarceloBorges Profile Picture
    122 on at
    Hello,
     
    In my experience with integrating systems with BC, whenever the API cannot accommodate for all the fields that I need, I always look into OData Webservices, as they provide similar functionality as APIs, and for the most part, they don't require customization. All you need to do, is to make sure the page that you need is published as an OData Web Service.
     
    Apparently, OData webservices are a little less performant than APIs, but I prefer to go that route than actually having a developer develop a Custom API -- unless I really need to process massive data on a daily basis.
     
    I've even had integrations in the past where I created part of the records using the standard API, then I complemented the record with additional fiels using the OData Webservice. Of course this is not ideal because you're making 2 calls to BC, but my volume was low enough that this was not a problem.
     
    Here's some documentation on publishing OData webservices:
     
    Sometimes OData has some quirks (just like APIs have its own quirks too), but if you have any questions or issues, let me know.
     
    Good luck!

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

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans