---
id: change/bcapps/10212
type: change
title: "#10212 Add SetReferenceType method to SignedXml and SignedXmlImpl (#10139)"
summary: A SetReferenceType method is added to the SignedXml codeunit to allow callers to set the Type property on XMLDSIG Reference elements, enabling creation of XML signatures with typed references such as references to XAdES SignedProperties.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit signedxml
  - codeunit signedxml impl.
system: administration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:01:56.344Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 313bc4ab2efe4fa351aaa89ce2896d9323bb036e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10212
    title: "microsoft/BCApps#10212: Add SetReferenceType method to SignedXml and SignedXmlImpl (#10139)"
    date: "2026-10-07"
    commit: 313bc4ab2efe4fa351aaa89ce2896d9323bb036e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/1460
    - object/codeunit/1461
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10212
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10212
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-07T15:37:42Z"
author: marcus905
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: System Application"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 3
  additions: 51
  deletions: 0
  al: 2
apps:
  - System Application
objects_touched:
  - key: codeunit/1460
    page: codeunit/1460
    type: codeunit
    id: 1460
    name: SignedXml
    app: System Application
    status: modified
  - key: codeunit/1461
    page: codeunit/1461
    type: codeunit
    id: 1461
    name: SignedXml Impl.
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 10139
work_items:
  - 652995
systems:
  - administration
quote: null
joined_against:
  major: "30"
  commit: 9df55025ee6eb2a1346ddad3a8a55d1ba1ff75aa
---

# #10212 Add SetReferenceType method to SignedXml and SignedXmlImpl (#10139)

> A SetReferenceType method is added to the SignedXml codeunit to allow callers to set the Type property on XMLDSIG Reference elements, enabling creation of XML signatures with typed references such as references to XAdES SignedProperties.

[Pull request](https://github.com/microsoft/BCApps/pull/10212) · merged into `main` (BC30) on 2026-10-07 by marcus905 (community contribution) · 3 files (+51 -0), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New SetReferenceType(Type: Text) method added to SignedXml and SignedXmlImpl codeunits
- Exposes the underlying .NET Reference.Type property that was previously inaccessible
- Enables XML signatures requiring typed references like XAdES SignedProperties
- Unit test added to verify the Type attribute is correctly emitted in generated Reference elements
- No breaking changes or compatibility impacts
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 1460 "SignedXml"](../../objects/codeunit/1460.md), System Application: modified
- [Codeunit 1461 "SignedXml Impl."](../../objects/codeunit/1461.md), System Application: modified

## Context

- Fixes: [#10139 [Extensibility Request] Expose SignedXml Reference.Type](https://github.com/microsoft/BCApps/issues/10139) (closed)
- Work items: AB#652995
- Labels: ADO: Sync, AL: System Application, From Fork, Team: Integrations
- Systems: administration

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