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:


Report
All responses (
Answers (