---
id: change/bcapps/10876
type: change
title: '#10876 [29.x]When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"'
summary: When users manually add an Intrastat report line and enter a Country/Region Code, the Intrastat Country/Region Code field is now automatically populated through an added validation trigger.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - table intrastat report line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:25.129Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6ee72dd0db1499045c28d005404243f84cb71a33
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10876
    title: 'microsoft/BCApps#10876: [29.x]When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"'
    date: "2026-09-02"
    commit: 6ee72dd0db1499045c28d005404243f84cb71a33
    t: null
    quote: Added an OnValidate trigger on Country/Region Code that sets Intrastat Country/Region Code.
links:
  learn: []
  objects:
    - object/table/4812
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10876
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10876
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-09-02T16:35:45Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
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:
  - 648522
systems:
  - inventory
quote: Added an OnValidate trigger on Country/Region Code that sets Intrastat Country/Region Code.
joined_against:
  major: "29"
  commit: 1d24dd5ee2a734510f0556ccc69342d0e616db2f
---

# #10876 [29.x]When Intrastat line is added manually the "Intrastat Country/Region Code" is not automatically populated after adding the "Country/Region Code"

> When users manually add an Intrastat report line and enter a Country/Region Code, the Intrastat Country/Region Code field is now automatically populated through an added validation trigger.

[Pull request](https://github.com/microsoft/BCApps/pull/10876) · merged into `releases/29.x` (BC29) on 2026-09-02 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
- Automatically derives Intrastat Country/Region Code when user enters Country/Region Code
- Fixes issue where manual line entry did not populate Intrastat code unlike the Suggest Lines path
- Includes test coverage for the new behavior
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#648522
- Labels: AL: Apps (W1), Team: SCM
- Systems: inventory
- From the description: "Added an OnValidate trigger on Country/Region Code that sets Intrastat 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).
