---
id: change/bcapps/10558
type: change
title: '#10558 [Master]-When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"'
summary: The Intrastat Country/Region Code field now automatically populates when users manually enter a Country/Region Code on an Intrastat Report line, matching the behavior when lines are suggested.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table intrastat report line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:24.573Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f382ab03f977df9358abf46fe17a3e972c9d4bd5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10558
    title: 'microsoft/BCApps#10558: [Master]-When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"'
    date: "2026-08-27"
    commit: f382ab03f977df9358abf46fe17a3e972c9d4bd5
    t: null
    quote: When an Intrastat Report line is added manually, the Intrastat Country/Region Code stays blank after the user enters the Country/Region Code.
links:
  learn: []
  objects:
    - object/table/4812
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10558
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10558
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T16:37:51Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 44
  deletions: 0
  al: 1
apps:
  - Intrastat
objects_touched:
  - key: table/4812
    page: table/4812
    type: table
    id: 4812
    name: Intrastat Report Line
    app: Intrastat
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646599
systems:
  - inventory
quote: When an Intrastat Report line is added manually, the Intrastat Country/Region Code stays blank after the user enters the Country/Region Code.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10558 [Master]-When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"

> The Intrastat Country/Region Code field now automatically populates when users manually enter a Country/Region Code on an Intrastat Report line, matching the behavior when lines are suggested.

[Pull request](https://github.com/microsoft/BCApps/pull/10558) · merged into `main` (BC30) on 2026-08-27 by neeleshsinghal · 2 files (+44 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added OnValidate trigger to Country/Region Code field on Intrastat Report Line table
- Derives Intrastat Country/Region Code automatically when a Country/Region Code is entered
- Ensures manual line creation populates the Intrastat code field like the Suggest Lines feature
- Resolves inconsistent behavior between manual entry and suggested lines
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 4812 "Intrastat Report Line"](../../objects/table/4812.md), Intrastat: modified

## Context

- Work items: AB#646599
- Labels: AL: Apps (W1), Team: Finance
- Systems: inventory
- From the description: "When an Intrastat Report line is added manually, the Intrastat Country/Region Code stays blank after the user enters the Country/Region Code."

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
