---
id: change/bcquality/273
type: change
title: "#273 knowledge(style): SetFilter date operands as replacement values; product name via ProductName"
summary: Two new code style rules guide developers to use replacement values for date operands in SetFilter strings and to reference the product name via ProductName methods instead of hardcoded text in user-facing messages.
tier: official
language: en
tags:
  - feature
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-15T00:48:09.860Z"
  flags: []
generated:
  at: "2026-11-15T00:17:15.357Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d576b0fd6da902bf6e4cd7dd837b1f27b170edd2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCQuality/pull/273
    title: "microsoft/BCQuality#273: knowledge(style): SetFilter date operands as replacement values; product name via ProductName"
    date: "2026-11-13"
    commit: d576b0fd6da902bf6e4cd7dd837b1f27b170edd2
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines:
    - guideline/microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values
    - guideline/microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name
    - guideline/microsoft/skills/review/al-style-review
  changes: []
number: 273
repo: microsoft/BCQuality
source_id: bcquality-prs
url: https://github.com/microsoft/BCQuality/pull/273
kind: pr
base_branch: main
major: null
merged_at: "2026-11-13T11:44:16Z"
author: MichaelDieringer
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 8
  additions: 141
  deletions: 1
  al: 7
apps: []
objects_touched: []
objects_unjoined:
  - path: microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.bad.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.good.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.md
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.bad.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.good.al
    status: added
    reason: not-in-snapshot
  - path: microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.md
    status: added
    reason: not-in-snapshot
  - path: microsoft/skills/review/al-style-review.md
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
quote: null
joined_against:
  major: null
  commit: null
---

# #273 knowledge(style): SetFilter date operands as replacement values; product name via ProductName

> Two new code style rules guide developers to use replacement values for date operands in SetFilter strings and to reference the product name via ProductName methods instead of hardcoded text in user-facing messages.

[Pull request](https://github.com/microsoft/BCQuality/pull/273) · merged into `main` on 2026-11-13 by MichaelDieringer · 8 files (+141 -1), 7 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- SetFilter rule prevents date text parsing issues by requiring date operands as replacement values like '%1|>=%2' instead of '0D|>=%1'
- ProductName rule directs user-facing labels to use ProductName.Short()/Full()/Marketing() methods per Learn guidance
- SetFilter rule excludes user-entered filters, GetFilter/GetView round trips, and DateFormula fields
- ProductName rule excludes locked labels, telemetry, captions, tooltips, and deliberate legacy product references

## AL objects touched

- `microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.bad.al`: added, not in the BC? snapshot yet
- `microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.good.al`: added, not in the BC? snapshot yet
- [`microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.md`](../../guidelines/microsoft/knowledge/style/setfilter-date-operands-must-be-replacement-values.md): added, not in the BC? snapshot yet
- `microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.bad.al`: added, not in the BC? snapshot yet
- `microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.good.al`: added, not in the BC? snapshot yet
- [`microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.md`](../../guidelines/microsoft/knowledge/style/use-productname-instead-of-hardcoded-product-name.md): added, not in the BC? snapshot yet
- [`microsoft/skills/review/al-style-review.md`](../../guidelines/microsoft/skills/review/al-style-review.md): modified, not in the BC? snapshot

## Context

- Systems: development

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