---
id: post/yzhums-com/70325
type: post
title: "Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL"
summary: String splitting in AL using the Text.Split method to parse delimited data like QR codes into separate values. This approach uses lists to store extracted substrings and retrieve them by index.
tier: community
language: en
tags:
  - string handling
  - al development
  - data parsing
  - qr codes
  - list data type
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:40:47.641Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: d6fc9ab472b5e16ef2f1b42cf05ec7ec6ab395872a8cff1e37fd3d685e2d6793
evidence:
  - kind: blog
    url: https://yzhums.com/70325/
    title: "Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL"
    date: "2026-01-30"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/70325/
    title: "Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL"
    date: "2026-01-30"
    commit: null
    t: null
    quote: "Text.Split(List of [Text]) Method: Splits a string into a maximum number of substrings based on a collection of separators."
  - kind: blog
    url: https://yzhums.com/70325/
    title: "Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL"
    date: "2026-01-30"
    commit: null
    t: null
    quote: "List data type: Represents a strongly typed list of ordered objects that can be accessed by index."
  - kind: blog
    url: https://yzhums.com/70325/
    title: "Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL"
    date: "2026-01-30"
    commit: null
    t: null
    quote: if the master data contains delimiters, it won't be able to retrieve the correct values.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "70325"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/70325/
published_at: "2026-01-30T00:55:40.000Z"
author: Yun Zhu
full_text: false
words: 288
quotes:
  - text: "Text.Split(List of [Text]) Method: Splits a string into a maximum number of substrings based on a collection of separators."
    why_it_matters: This is the core method for splitting delimited strings in AL, the key tool for solving the problem.
  - text: "List data type: Represents a strongly typed list of ordered objects that can be accessed by index."
    why_it_matters: Lists provide the mechanism to store and access individual split values, making the solution practical.
  - text: if the master data contains delimiters, it won't be able to retrieve the correct values.
    why_it_matters: Highlights a critical limitation that affects implementation success and data quality requirements.
code_objects_mentioned:
  - other Text.Split
systems:
  - development
versions_mentioned: []
cautions:
  - kind: gotcha
    quote: if the master data contains delimiters, it won't be able to retrieve the correct values
    objects: []
    events: []
    versions: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2026/01/Snipaste_2026-01-30_09-54-55.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:09:40.812Z"
---

# Dynamics 365 Business Central: How to split a string on a fixed character (delimiter or separator) via AL

[Read the post](https://yzhums.com/70325/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2026-01-30 · 288 words · tier community · reviewed (checked by Opus)

> String splitting in AL using the Text.Split method to parse delimited data like QR codes into separate values. This approach uses lists to store extracted substrings and retrieve them by index.

## Key points

- Text.Split method breaks a string into substrings based on specified separators like commas
- List data type stores split values as an ordered, unbounded collection accessible by index
- Clean data is required as embedded delimiters in master data will cause incorrect extraction
- Useful for parsing concatenated external data such as QR codes containing multiple fields

## Quotes

- "Text.Split(List of [Text]) Method: Splits a string into a maximum number of substrings based on a collection of separators." (This is the core method for splitting delimited strings in AL, the key tool for solving the problem.)
- "List data type: Represents a strongly typed list of ordered objects that can be accessed by index." (Lists provide the mechanism to store and access individual split values, making the solution practical.)
- "if the master data contains delimiters, it won't be able to retrieve the correct values." (Highlights a critical limitation that affects implementation success and data quality requirements.)

## 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.

- other "Text.Split"

## Heads up

- gotcha: "if the master data contains delimiters, it won't be able to retrieve the correct values"

## Context

- Features: string splitting, text parsing, list operations, delimiter handling

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.
