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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

PATCHing journalLines via REST clears currencyCode and currencyFactor

(0) ShareShare
ReportReport
Posted on by

Environment: Production (also reproducible in Sandbox)

API version: v2.0

Endpoint used (REST): PATCH https://api.businesscentral.dynamics.com/v2.0/Production/api/v2.0/companies({companyId})/journals({journalId})/journalLines({journalLineId})

 

Expected behavior

currencyCode and currencyFactor should remain unchanged when updating the accountId on a journal line.

 

Actual behavior

Both fields are cleared when accountId is included in the PATCH request.

If accountId is omitted, the currency fields remain untouched.

 

Additional details

We PATCH via REST API, but we GET via OData (the OData response includes currencyCode and currencyFactor).

This issue was not occurring until recently, suggesting a potential behavior change or regression.

 

Question

Is this expected behavior for the REST API when updating accountId, or is it an unintended regression in the journalLines endpoint?


 

Request body:

{
  id: "165941b4-a3b6-f011-bbd1-000d3a74ff9a",
  accountNumber: "18200",
  accountType: "Bank Account",
  description: "Account updated to bank account",
  amount: -55,
}


journalLine (fetched through OData endpoint) after the response:

{
  id: "xxx",
  journalTemplateName: "GENERAL",
  lineNumber: 608888208,
  accountType: "Bank Account",
  accountNumber: "CHECKING",
  postingDate: "2025-10-31",
  documentType: " ",
  documentNumber: "1BDB1DB4",
  description: "Account updated to bank account",
  vatPercent: 0,
  balAccountNumber: "",
  currencyCode: "",
  amount: -55,
  debitAmount: 0,
  creditAmount: 55,
  amountLcy: -55,
  balanceLcy: -55,
  currencyFactor: 0,
  RTRCurrencyFactorAPI: 0,
  //fields omitted for brevity
}
Categories:
I have the same question (0)

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 71 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans