---
id: object/codeunit/5470
type: object
title: Codeunit 5470 "Graph Collection Mgt - Item"
summary: Codeunit 5470 "Graph Collection Mgt - Item" in Base Application (Microsoft.Integration.Graph). 19 public procedures, 1 event subscribers. 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: bef98bf33910403dbe9a55a5ca413a9d8846fcea63ff53a050ceee7edf314f87
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Graph/GraphCollectionMgtItem.Codeunit.al
    title: src/Layers/W1/BaseApp/Integration/Graph/GraphCollectionMgtItem.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: 5470
name: Graph Collection Mgt - Item
namespace: Microsoft.Integration.Graph
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: 28
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 13
  implements: 0
---

# Codeunit 5470 "Graph Collection Mgt - Item"

> Codeunit 5470 "Graph Collection Mgt - Item" in Base Application (Microsoft.Integration.Graph). 19 public procedures, 1 event subscribers. Present since at least BC23, still in BC30.

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

## Event subscriptions

- HandleApiSetup subscribes to Codeunit "Graph Mgt - General Tools" ApiSetup

## Procedures

- `InsertItemFromSalesDocument(var Item: Record Item; var TempFieldSet: Record "Field" temporary; UnitOfMeasureJSON: Text)`
- `InsertItem(var Item: Record Item; var TempFieldSet: Record "Field" temporary; BaseUnitOfMeasureJSON: Text)`
- `InsertItem(var Item: Record Item; var TempFieldSet: Record "Field" temporary)`
- `ModifyItem(var Item: Record Item; var TempFieldSet: Record "Field" temporary)`
- `ProcessComplexTypes(var Item: Record Item; BaseUOMJSON: Text)`
- `ItemUnitOfMeasureToJSON(var Item: Record Item; UnitOfMeasureCode: Code[10]): Text`
- `UpdateOrCreateItemUnitOfMeasureFromSalesDocument(UnitOfMeasureJSONString: Text; var Item: Record Item; var TempFieldSet: Record "Field" temporary; var ItemModified: Boolean)`
- `UpdateUnitOfMeasure(UnitOfMeasureJSONString: Text; UnitOfMeasureFieldNo: Integer; var Item: Record Item)`
- `ParseJSONToUnitOfMeasure(UnitOfMeasureJSONString: Text; var UnitOfMeasure: Record "Unit of Measure")`
- `WriteItemEDMComplexTypes()`
- `SetLastDateTimeModified()`
- `UOMComplexTypeUnitCode(): Text`
- `UOMComplexTypeUnitName(): Text`
- `UOMComplexTypeSymbol(): Text`
- `UOMConversionComplexTypeName(): Text`
- `UOMConversionComplexTypeToUnitOfMeasure(): Text`
- `UOMConversionComplexTypeFromToConversionRate(): Text`
- `UpdateIds()`
- `UpdateIds(WithCommit: Boolean)`

Plus 8 local procedures.

## Triggers

OnRun

## Calls

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 5459 "JSON Management"](../codeunit/5459.md) (11 calls: `ItemUnitOfMeasureToJSON → AddJObjectToJObject`, `ItemUnitOfMeasureToJSON → AddJPropertyToJObject`, `ItemUnitOfMeasureToJSON → GetJSONObject`, …)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (6 calls: `InsertItem → ProcessNewRecordFromAPI`, `InsertItemFromSalesDocument → ProcessNewRecordFromAPI`, `ModifyItem → ProcessNewRecordFromAPI`, …)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (1 call: `RegisterFieldSet → GetField`)
- [Codeunit 3006 "DotNet_DateTimeOffset"](../codeunit/3006.md) (1 call: `SetLastDateTimeModified → ConvertToUtcDateTime`)
- [Codeunit 5468 "Graph Mgt - Complex Types"](../codeunit/5468.md) (1 call: `ItemUnitOfMeasureToJSON → GetUnitOfMeasureJSON`)

## Called by

- [Page 20008 "APIV1 - Items"](../page/20008.md) (5 calls: `OnInsertRecord → InsertItem`, `OnInsertRecord → ItemUnitOfMeasureToJSON`, `OnModifyRecord → ItemUnitOfMeasureToJSON`, …)
- [Codeunit 5468 "Graph Mgt - Complex Types"](../codeunit/5468.md) (3 calls: `GetUnitOfMeasureJSON → UOMComplexTypeSymbol`, `GetUnitOfMeasureJSON → UOMComplexTypeUnitCode`, `GetUnitOfMeasureJSON → UOMComplexTypeUnitName`)
- [Page 30008 "APIV2 - Items"](../page/30008.md) (2 calls: `InsertItem → InsertItem`, `InsertItem → ModifyItem`)
- [Codeunit 5476 "Graph Mgt - Sales Inv. Lines"](../codeunit/5476.md) (1 call: `GetUnitOfMeasureJSON → ItemUnitOfMeasureToJSON`)
- [Codeunit 5477 "Sales Invoice Aggregator"](../codeunit/5477.md) (1 call: `UpdateUnitOfMeasure → UpdateOrCreateItemUnitOfMeasureFromSalesDocument`)
- [Codeunit 5528 "Graph Mgt - Purch. Inv. Lines"](../codeunit/5528.md) (1 call: `GetUnitOfMeasureJSON → ItemUnitOfMeasureToJSON`)
- [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) (1 call: `UpdateUnitOfMeasure → UpdateOrCreateItemUnitOfMeasureFromSalesDocument`)
- [Codeunit 9994 "API Data Upgrade"](../codeunit/9994.md) (1 call: `OnRun → UpdateIds`)
- [Page 20043 "APIV1 - Sales Invoice Lines"](../page/20043.md) (1 call: `InsertItemOnTheFly → InsertItemFromSalesDocument`)
- [Page 20044 "APIV1 - Sales Order Lines"](../page/20044.md) (1 call: `InsertItemOnTheFly → InsertItemFromSalesDocument`)
- [Page 20045 "APIV1 - Sales Quote Lines"](../page/20045.md) (1 call: `InsertItemOnTheFly → InsertItemFromSalesDocument`)
- [Page 20046 "APIV1 - Sales Credit Mem Lines"](../page/20046.md) (1 call: `InsertItemOnTheFly → InsertItemFromSalesDocument`)
- [Page 20047 "APIV1 - Purchase Invoice Lines"](../page/20047.md) (1 call: `InsertItemOnTheFly → InsertItemFromSalesDocument`)

## 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: "Graph Collection Mgt - Item")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
