---
id: change/bcapps/11213
type: change
title: "#11213 Fix sample invoice email when the agent setup is not saved yet"
summary: The payables agent demo guide now receives the setup configuration from the setup page buffer instead of fetching it from the database, allowing sample invoice emails to be sent even before saving the setup.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit pa demo guide
  - page pa demo guide
  - page payables agent setup
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:53.727Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c4be4def478559a0a59421779b4e75f5cc0cca0f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11213
    title: "microsoft/BCApps#11213: Fix sample invoice email when the agent setup is not saved yet"
    date: "2026-09-09"
    commit: c4be4def478559a0a59421779b4e75f5cc0cca0f
    t: null
    quote: The setup page now hands its current buffer to the guide instead of letting the guide go and fetch a saved copy.
links:
  learn: []
  objects:
    - object/codeunit/3309
    - object/page/3307
    - object/page/3304
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11213
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11213
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-09T17:46:07Z"
author: Explorer986
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: 3
  additions: 68
  deletions: 51
  al: 3
apps:
  - PayablesAgent
objects_touched:
  - key: codeunit/3309
    page: codeunit/3309
    type: codeunit
    id: 3309
    name: PA Demo Guide
    app: PayablesAgent
    status: modified
  - key: page/3307
    page: page/3307
    type: page
    id: 3307
    name: PA Demo Guide
    app: PayablesAgent
    status: modified
  - key: page/3304
    page: page/3304
    type: page
    id: 3304
    name: Payables Agent Setup
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11672
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11672
fixes_issues: []
work_items:
  - 648897
systems:
  - development
quote: The setup page now hands its current buffer to the guide instead of letting the guide go and fetch a saved copy.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11213 Fix sample invoice email when the agent setup is not saved yet

> The payables agent demo guide now receives the setup configuration from the setup page buffer instead of fetching it from the database, allowing sample invoice emails to be sent even before saving the setup.

[Pull request](https://github.com/microsoft/BCApps/pull/11213) · merged into `main` (BC30) on 2026-09-09 by Explorer986 · 3 files (+68 -51), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Setup page passes its in-memory configuration to the demo guide instead of requiring it to be saved first
- Sample invoice email is sent when pressing Next in the guide, providing immediate feedback
- Three procedures now take setup configuration as a parameter
- Redundant parameterless SendDemoEmail overload removed
- No database writes or data changes involved
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 3309 "PA Demo Guide"](../../objects/codeunit/3309.md), PayablesAgent: modified
- [Page 3307 "PA Demo Guide"](../../objects/page/3307.md), PayablesAgent: modified
- [Page 3304 "Payables Agent Setup"](../../objects/page/3304.md), PayablesAgent: modified

## Also merged into

- [#11672](https://github.com/microsoft/BCApps/pull/11672) into `releases/29.x` on 2026-09-24

## Context

- Work items: AB#648897
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: "The setup page now hands its current buffer to the guide instead of letting the guide go and fetch a saved copy."

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