---
id: change/bcapps/10022
type: change
title: "#10022 Known senders table should only be inserted to when the task is coming from an email"
summary: The Known Senders table now only gets populated when tasks arrive from email, preventing unwanted entries when tasks are created by manually uploading PDFs.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table pa known sender
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:51.961Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7b81f11d7ccea27bf118fc05e679bd180221979a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10022
    title: "microsoft/BCApps#10022: Known senders table should only be inserted to when the task is coming from an email"
    date: "2026-08-08"
    commit: 7b81f11d7ccea27bf118fc05e679bd180221979a
    t: null
    quote: The table was getting populated when creating tasks by manually uploading a PDF. This functionality is scoped to tasks received by email.
links:
  learn: []
  objects:
    - object/table/3308
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10022
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10022
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-08T07:06:19Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 2
  deletions: 0
  al: 1
apps:
  - PayablesAgent
objects_touched:
  - key: table/3308
    page: table/3308
    type: table
    id: 3308
    name: PA Known Sender
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646072
systems:
  - development
quote: The table was getting populated when creating tasks by manually uploading a PDF. This functionality is scoped to tasks received by email.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10022 Known senders table should only be inserted to when the task is coming from an email

> The Known Senders table now only gets populated when tasks arrive from email, preventing unwanted entries when tasks are created by manually uploading PDFs.

[Pull request](https://github.com/microsoft/BCApps/pull/10022) · merged into `main` (BC30) on 2026-08-08 by mynjj · 1 file (+2 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Restricts population of the PA Known Sender table to email-sourced tasks only
- Prevents table entries when tasks are created through manual PDF uploads
- Uses the same source-distinguishing approach as GetAgentTaskMessagePageId
- Fixes issue where table was incorrectly populated for non-email task creation
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 3308 "PA Known Sender"](../../objects/table/3308.md), PayablesAgent: modified

## Context

- Work items: AB#646072
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: "The table was getting populated when creating tasks by manually uploading a PDF. This functionality is scoped to tasks received by email."

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