---
id: object/codeunit/7011
type: object
title: Codeunit 7011 "Price Source List"
summary: Codeunit 7011 "Price Source List" in Base Application (Microsoft.Pricing.Source). 21 public procedures, 3 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 16f16ebf88d6269e3ea98ee8b06550f4213238d1668863588d6d00bab1950300
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/Source/PriceSourceList.Codeunit.al
    title: src/Layers/W1/BaseApp/Pricing/Source/PriceSourceList.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 7011
name: Price Source List
namespace: Microsoft.Pricing.Source
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 29
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 3
  calls: 0
  called_by: 17
  implements: 0
---

# Codeunit 7011 "Price Source List"

> Codeunit 7011 "Price Source List" in Base Application (Microsoft.Pricing.Source). 21 public procedures, 3 events. Present since at least BC23, still in BC30.

Base Application · Microsoft.Pricing.Source · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/Source/PriceSourceList.Codeunit.al) · facts from BC29

## Events published

- `OnAddOnBeforeInsert(var PriceSource: Record "Price Source")` (integration)
- `OnAfterGetValue(SourceType: Enum "Price Source Type"; var Result: Code[20])` (integration)
- `OnBeforeAddChildren(PriceSource: Record "Price Source"; var TempChildPriceSource: Record "Price Source" temporary)` (integration)
  - subscribers: [Codeunit 7032 "Price Source - Customer"](../codeunit/7032.md) AddChildren, [Codeunit 7036 "Price Source - Job"](../codeunit/7036.md) AddChildren, [Codeunit 7038 "Price Source - Contact"](../codeunit/7038.md) AddChildren

## Procedures

- `Init()`
- `GetMinMaxLevel(var Level: array[2] of Integer)`
- `GetPriceType(): Enum "Price Type"`
- `SetPriceType(NewPriceType: Enum "Price Type")`
- `IncLevel()`
- `SetLevel(Level: Integer)`
- `Add(SourceType: Enum "Price Source Type"; SourceNo: Code[20])`
- `Add(SourceType: Enum "Price Source Type"; ParentSourceNo: Code[20]; SourceNo: Code[20])`
- `Add(SourceType: Enum "Price Source Type"; SourceId: Guid)`
- `Add(SourceType: Enum "Price Source Type")`
- `Add(PriceSource: Record "Price Source")`
- `AddChildren(PriceSource: Record "Price Source")`
- `AddJobAsSources(JobNo: Code[20]; JobTaskNo: Code[20])`
- `GetValue(SourceType: Enum "Price Source Type"): Code[20]`
- `Copy(var FromPriceSourceList: Codeunit "Price Source List")`
- `GetList(var ToTempPriceSource: Record "Price Source" temporary): Boolean`
- `First(var PriceSource: Record "Price Source"; AtLevel: Integer): Boolean`
- `Next(var PriceSource: Record "Price Source"): Boolean`
- `GetSourceGroup(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean`
- `Remove(SourceType: Enum "Price Source Type"): Boolean`
- `RemoveAtLevel(SourceType: Enum "Price Source Type"; Level: Integer): Boolean`

Plus 5 local procedures.

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 7020 "Sales Line - Price"](../codeunit/7020.md) (8 calls: `AddActivatedCampaignsAsSource → Add`, `AddCustomerSources → Add`, `AddSources → Add`, …)
- [Codeunit 7026 "Service Line - Price"](../codeunit/7026.md) (6 calls: `AddCustomerSources → Add`, `AddSources → Add`, `AddSources → AddJobAsSources`, …)
- [Codeunit 7021 "Purchase Line - Price"](../codeunit/7021.md) (5 calls: `AddSources → AddJobAsSources`, `AddSources → Init`, `AddVendorSources → Add`, …)
- [Codeunit 7023 "Job Journal Line - Price"](../codeunit/7023.md) (5 calls: `AddSources → Add`, `AddSources → AddJobAsSources`, `AddSources → Init`, …)
- [Codeunit 7024 "Job Planning Line - Price"](../codeunit/7024.md) (5 calls: `AddSources → Add`, `AddSources → AddJobAsSources`, `AddSources → Init`, …)
- [Codeunit 7028 "Res. Journal Line - Price"](../codeunit/7028.md) (5 calls: `AddSources → Add`, `AddSources → AddJobAsSources`, `AddSources → Init`, …)
- [Codeunit 7008 "Price Calculation Buffer Mgt."](../codeunit/7008.md) (4 calls: `AddSource → Add`, `GetSource → GetValue`, `GetSources → GetList`, …)
- [Codeunit 7017 "Price List Management"](../codeunit/7017.md) (4 calls: `BuildSourceFilters → First`, `BuildSourceFilters → Next`, `SetPriceListLineFilters → GetPriceType`, …)
- [Codeunit 7018 "Price UX Management"](../codeunit/7018.md) (4 calls: `AddAllSourceType → Add`, `GetPriceSource → Add`, `GetPriceSource → SetPriceType`, …)
- [Codeunit 7022 "Item Journal Line - Price"](../codeunit/7022.md) (4 calls: `AddSources → Add`, `AddSources → Init`, `SetAssetSourceForSetup → GetSourceGroup`, …)
- [Codeunit 7025 "Requisition Line - Price"](../codeunit/7025.md) (4 calls: `AddSources → Add`, `AddSources → Init`, `SetAssetSourceForSetup → GetSourceGroup`, …)
- [Codeunit 7027 "Std. Item Jnl. Line - Price"](../codeunit/7027.md) (4 calls: `AddSources → Add`, `AddSources → Init`, `SetAssetSourceForSetup → GetSourceGroup`, …)
- [Codeunit 7029 "Price List Line - Price"](../codeunit/7029.md) (4 calls: `AddSources → Add`, `AddSources → Init`, `SetAssetSourceForSetup → GetSourceGroup`, …)
- [Codeunit 7002 "Price Calculation - V16"](../codeunit/7002.md) (3 calls: `FindLines → First`, `FindLines → GetMinMaxLevel`, `FindLines → Next`)
- [Report 7054 "Res. Price List"](../report/7054.md) (2 calls: `GetSourceList → Add`, `GetSourceList → AddJobAsSources`)
- [Codeunit 7032 "Price Source - Customer"](../codeunit/7032.md) (1 call: `AddChildren → Add`)
- [Codeunit 7038 "Price Source - Contact"](../codeunit/7038.md) (1 call: `AddChildren → Add`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Price Source List")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
