---
title: "Codeunit 46 SelectionFilterManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/
type: codeunit
id: 46
name: "SelectionFilterManagement"
app: "Base Application"
namespace: System.Text
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 46 SelectionFilterManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Text |
| Versions | 17-28 |
| Source file | System/SelectionFilterManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetSelectionFilter | (var RecordRef, Integer) | Text | public | 17-28 | - | - |
| CreateFilterFromTempTable | (var RecordRef, var RecordRef, Integer) | Text | public | 17-28 | - | - |
| AddQuotes | (Text) | Text | public | 17-28 | - | - |
| ReplaceString | (Text, Text, Text) | Text | public | 17-28 | - | - |
| GetSelectionFilterForItem | (var Record Item) | Text | public | 17-28 | - | - |
| GetSelectionFilterForDimensionValue | (var Record Dimension Value) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCurrency | (var Record Currency) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCustomerPriceGroup | (var Record Customer Price Group) | Text | public | 17-28 | - | - |
| GetSelectionFilterForLocation | (var Record Location) | Text | public | 17-28 | - | - |
| GetSelectionFilterForGLAccount | (var Record G/L Account) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCustomer | (var Record Customer) | Text | public | 17-28 | - | - |
| GetSelectionFilterForContact | (var Record Contact) | Text | public | 17-28 | - | - |
| GetSelectionFilterForVendor | (var Record Vendor) | Text | public | 17-28 | - | - |
| GetSelectionFilterForResource | (var Record Resource) | Text | public | 17-28 | - | - |
| GetSelectionFilterForInventoryPostingGroup | (var Record Inventory Posting Group) | Text | public | 17-28 | - | - |
| GetSelectionFilterForGLBudgetName | (var Record G/L Budget Name) | Text | public | 17-28 | - | - |
| GetSelectionFilterForBusinessUnit | (var Record Business Unit) | Text | public | 17-28 | - | - |
| GetSelectionFilterForICPartner | (var Record IC Partner) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCashFlow | (var Record Cash Flow Forecast) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCashFlowAccount | (var Record Cash Flow Account) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCostBudgetName | (var Record Cost Budget Name) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCostCenter | (var Record Cost Center) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCostObject | (var Record Cost Object) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCostType | (var Record Cost Type) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCampaign | (var Record Campaign) | Text | public | 17-28 | - | - |
| GetSelectionFilterForLotNoInformation | (var Record Lot No. Information) | Text | public | 17-28 | - | - |
| GetSelectionFilterForSerialNoInformation | (var Record Serial No. Information) | Text | public | 17-28 | - | - |
| GetSelectionFilterForCustomerDiscountGroup | (var Record Customer Discount Group) | Text | public | 17-28 | - | - |
| GetSelectionFilterForItemDiscountGroup | (var Record Item Discount Group) | Text | public | 17-28 | - | - |
| GetSelectionFilterForItemCategory | (var Record Item Category) | Text | public | 17-28 | - | - |
| GetSelectionFilterForIssueReminder | (var Record Reminder Header) | Text | public | 17-28 | - | - |
| GetSelectionFilterForWorkflowStepInstance | (var Record Workflow Step Instance) | Text | public | 17-28 | - | - |
| GetSelectionFilterForWorkflowBuffer | (var Record Workflow Buffer) | Text | public | 17-28 | - | - |
| GetSelectionFilterForResponsibilityCenter | (var Record Responsibility Center) | Text | public | 17-28 | - | - |
| GetSelectionFilterForSalesPersonPurchaser | (var Record Salesperson/Purchaser) | Text | public | 17-28 | - | - |
| GetSelectionFilterForItemVariant | (var Record Item Variant) | Text | public | 17-28 | - | - |
| GetSelectionFilterForFixedAsset | (var Record Fixed Asset) | Text | public | 17-28 | - | - |
| GetSelectionFilterForSalesHeader | (var Record Sales Header) | Text | public | 17-28 | - | - |
| GetSelectionFilterForPurchaseHeader | (var Record Purchase Header) | Text | public | 17-28 | - | - |
| GetSelectionFilterForAggregatePermissionSetRoleId | (var Record Aggregate Permission Set) | Text | public | 17-28 | - | - |
| GetSelectionFilter | (var RecordRef, Integer, Boolean) | Text | public | 17-28 | - | - |
| GetSelectionFilterForEmployee | (var Record Employee) | Text | public | 18-28 | - | - |
| GetSelectionFilterForPackageNoInformation | (var Record Package No. Information) | Text | public | 18-28 | - | - |
| GetSelectionFilterForGLAccountCategory | (var Record G/L Account Category) | Text | public | 20-28 | - | - |
| GetMaximumNumberOfParametersInSQLQuery | () | Integer | public | 20-28 | - | - |
| GetSelectionFilterForTransferHeader | (var Record Transfer Header) | Text | public | 22-28 | - | - |
| GetSelectionFilterForServiceHeader | (var Record Service Header) | Text | public | 22-27 | Pending 25.0 | Replaced by same procedure in codeunit Serv. Selection Filter Mgt. |
| GetSelectionFilterForServiceItem | (var Record Service Item) | Text | public | 24-27 | Pending 25.0 | Replaced by same procedure in codeunit Serv. Selection Filter Mgt. |
| GetSelectionFilterForJob | (var Record Job) | Text | public | 24-28 | - | - |
| GetSelectionFilterForJobTask | (var Record Job Task) | Text | public | 24-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
