---
id: post/yzhums-com/63320
type: post
title: "Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef"
summary: Business Central 2025 wave 1 introduces implicit conversion between Record and RecordRef data types, allowing direct assignment in both directions without calling GetTable or SetTable methods. This simplifies code when working with dynamic table references, available in runtime version 15.2 and above.
tier: community
language: en
tags:
  - al language
  - record handling
  - recordref
  - implicit conversion
  - bc26
  - wave 1
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:42:40.177Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 7bed48bef91e109ae433768812f32ad420dfaab8cdbbb860193ed45a74a54199
evidence:
  - kind: blog
    url: https://yzhums.com/63320/
    title: "Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef"
    date: "2025-06-10"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/63320/
    title: "Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef"
    date: "2025-06-10"
    commit: null
    t: null
    quote: We have introduced support for implicit conversion between Record and RecordRef instances, allowing direct assignment between these types.
  - kind: blog
    url: https://yzhums.com/63320/
    title: "Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef"
    date: "2025-06-10"
    commit: null
    t: null
    quote: in runtime version 15.2 or above, we can do this directly through the assignment statement, RecordRef := Record.
  - kind: blog
    url: https://yzhums.com/63320/
    title: "Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef"
    date: "2025-06-10"
    commit: null
    t: null
    quote: This does not replace RecordRef.SetTable(Record, Boolean) Method, for example, MyRecordRef.SetTable(TempCust, true).
links:
  learn: []
  objects:
    - object/table/18
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "63320"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/63320/
published_at: "2025-06-10T01:03:27.000Z"
author: Yun Zhu
full_text: false
words: 692
quotes:
  - text: We have introduced support for implicit conversion between Record and RecordRef instances, allowing direct assignment between these types.
    why_it_matters: Explains the core feature that simplifies AL code by eliminating the need for GetTable and SetTable method calls
  - text: in runtime version 15.2 or above, we can do this directly through the assignment statement, RecordRef := Record.
    why_it_matters: Clarifies the exact runtime requirement and the new syntax developers should use
  - text: This does not replace RecordRef.SetTable(Record, Boolean) Method, for example, MyRecordRef.SetTable(TempCust, true).
    why_it_matters: Important limitation showing that SetTable is still required for temporary records where the two-parameter form is necessary
code_objects_mentioned:
  - codeunit RecordAndRecordRefConversion
  - table Customer
systems:
  - development
  - platform
versions_mentioned:
  - BC26
  - BC26.2
  - 2025 wave 1
cautions:
  - kind: gotcha
    quote: This will cause an error if the table is different.
    objects: []
    events: []
    versions:
      - BC26
  - kind: gotcha
    quote: It seems that the assignment statement does not copy filters and views.
    objects: []
    events: []
    versions:
      - BC26
  - kind: breaking
    quote: If the runtime is not set to 15.2 or above, the following error will be displayed.
    objects: []
    events: []
    versions:
      - BC26
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/06/Snipaste_2025-06-10_09-49-51.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:19:22.892Z"
---

# Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef

[Read the post](https://yzhums.com/63320/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-06-10 · 692 words · tier community · reviewed (checked by Opus)

> Business Central 2025 wave 1 introduces implicit conversion between Record and RecordRef data types, allowing direct assignment in both directions without calling GetTable or SetTable methods. This simplifies code when working with dynamic table references, available in runtime version 15.2 and above.

## Key points

- Record variables can now be directly assigned to RecordRef with implicit conversion, replacing GetTable calls
- RecordRef can be assigned directly to Record variables, replacing SetTable calls
- The feature requires runtime version 15.2 or above; earlier versions show AL0122 compilation errors
- Implicit assignment does not copy filters and views, unlike SetTable with the temporary parameter
- SetTable method with temporary parameter remains necessary for temporary record scenarios

## Quotes

- "We have introduced support for implicit conversion between Record and RecordRef instances, allowing direct assignment between these types." (Explains the core feature that simplifies AL code by eliminating the need for GetTable and SetTable method calls)
- "in runtime version 15.2 or above, we can do this directly through the assignment statement, RecordRef := Record." (Clarifies the exact runtime requirement and the new syntax developers should use)
- "This does not replace RecordRef.SetTable(Record, Boolean) Method, for example, MyRecordRef.SetTable(TempCust, true)." (Important limitation showing that SetTable is still required for temporary records where the two-parameter form is necessary)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- codeunit "RecordAndRecordRefConversion"
- [table 18 "Customer"](../../objects/table/18.md)

Not found in BC28-30: codeunit "RecordAndRecordRefConversion".

## Heads up

- gotcha: "This will cause an error if the table is different." (about version BC26)
- gotcha: "It seems that the assignment statement does not copy filters and views." (about version BC26)
- breaking: "If the runtime is not set to 15.2 or above, the following error will be displayed." (about version BC26)

## Context

- Features: Implicit Record to RecordRef conversion, Implicit RecordRef to Record conversion, Direct assignment between Record and RecordRef, Runtime 15.2 support
- Versions: BC26, BC26.2, 2025 wave 1

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
