---
id: object/codeunit/3330
type: object
title: Codeunit 3330 "PA Work Item Presentation"
summary: Codeunit 3330 "PA Work Item Presentation" in PayablesAgent (Microsoft.Agent.PayablesAgent). 13 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - payablesagent
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-01T01:00:51.425Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 63f63b65735496946a05109b3e5e769d9067f733e5732c0326aee62620f579f1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/PayablesAgent/app/Flows/Supervision/PAWorkItemPresentation.Codeunit.al
    title: src/Apps/W1/PayablesAgent/app/Flows/Supervision/PAWorkItemPresentation.Codeunit.al (main)
    date: null
    commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/13361
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/supervise-agent-tasks
      title: Supervise Agent Activities in Business Central
      label: possibly related
      why: Work item presentation displays Payables Agent tasks requiring supervisor review and approval in Business Central.
      by: model
object_type: codeunit
object_id: 3330
name: PA Work Item Presentation
namespace: Microsoft.Agent.PayablesAgent
app: PayablesAgent
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 18
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 3
  implements: 0
---

# Codeunit 3330 "PA Work Item Presentation"

> Codeunit 3330 "PA Work Item Presentation" in PayablesAgent (Microsoft.Agent.PayablesAgent). 13 public procedures. Introduced in BC30.

PayablesAgent · Microsoft.Agent.PayablesAgent · BC30 · [source at f53bb0f1](https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/PayablesAgent/app/Flows/Supervision/PAWorkItemPresentation.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "Agent Task" = R, tabledata "Agent Task Message" = R |

## Procedures

- `LoadAllRows(var TempRows: Record "PA Work Item List Row" temporary)` (internal)
- `LoadRowsByState(State: Enum "PA Work Item State"; var TempRows: Record "PA Work Item List Row" temporary)` (internal)
- `PopulateRow(var TempRow: Record "PA Work Item List Row" temporary; WorkItem: Codeunit "PA Work Item")` (internal)
- `DrillDownByState(State: Enum "PA Work Item State")` (internal)
- `GetMessagePageId(MessageId: Guid): Integer` (internal)
- `OpenSource(WorkItem: Codeunit "PA Work Item")` (internal)
- `OpenSourceEmail(WorkItem: Codeunit "PA Work Item")` (internal)
- `OpenSourcePdf(WorkItem: Codeunit "PA Work Item")` (internal)
- `ViewSourcePdf(WorkItem: Codeunit "PA Work Item")` (internal)
- `DownloadSourcePdf(WorkItem: Codeunit "PA Work Item")` (internal)
- `GetEmailWebLink(WorkItem: Codeunit "PA Work Item"): Text` (internal)
- `OpenAgentTask(AgentTaskId: BigInteger)` (internal)
- `OpenOutcome(WorkItem: Codeunit "PA Work Item")` (internal)

Plus 5 local procedures.

## Calls

From the extracted call graph of BC30 (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 3341 "PA Work Item"](../codeunit/3341.md) (30 calls: `DownloadSourcePdf → GetSourcePdf`, `GetEmailWebLink → GetEmailExternalId`, `GetMessagePageId → GetSourceType`, …)
- [Codeunit 3342 "PA Work Item Collection"](../codeunit/3342.md) (3 calls: `InsertCollectionRows → Next`, `LoadAllRows → OpenAll`, `LoadRowsByState → OpenByState`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `DownloadSourcePdf → CreateInStream`, `ViewSourcePdf → CreateInStream`)
- [Codeunit 3340 "PA Purchase Outcomes"](../codeunit/3340.md) (1 call: `PopulateDescriptions → TryGetFacts`)
- [Codeunit 4303 "Agent Task"](../codeunit/4303.md) (1 call: `OpenAgentTask → OpenAgentTaskLogEntries`)
- [Codeunit 700 "Page Management"](../codeunit/700.md) (1 call: `OpenOutcome → PageRun`)

## Called by

- [Page 3333 "Payables Agent Work Items"](../page/3333.md) (4 calls: `OnAfterGetCurrRecord → GetEmailWebLink`, `RebuildRows → LoadAllRows`, `RebuildRows → LoadRowsByState`, …)
- [Codeunit 3352 "Payables Agent Metadata"](../codeunit/3352.md) (1 call: `GetAgentTaskMessagePageId → GetMessagePageId`)
- [Page 3338 "PA Email Review"](../page/3338.md) (1 call: `SetWorkItem → PopulateRow`)

## Recent changes

- 2026-11-14 [#13361 Foundation for Payables Agent V2.0](../../changes/bcapps/13361.md) (main, BC30, refactor, added)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Supervise Agent Activities in Business Central](https://learn.microsoft.com/dynamics365/business-central/supervise-agent-tasks) — possibly related: Work item presentation displays Payables Agent tasks requiring supervisor review and approval in Business Central. (model-linked)

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 BC30 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: "PA Work Item Presentation")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
