---
id: change/bcapps/10568
type: change
title: "#10568 Send sample invoices from the demo guide directly"
summary: The Payables Agent demo guide now sends sample invoices immediately when selecting the email option, rather than deferring the send until setup is saved, ensuring invoices are sent regardless of the order of operations.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit pa demo guide
  - page pa demo guide
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:24.556Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 0949e0ef706de9fc2e72ab01f96aa42f7112f767
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10568
    title: "microsoft/BCApps#10568: Send sample invoices from the demo guide directly"
    date: "2026-08-27"
    commit: 0949e0ef706de9fc2e72ab01f96aa42f7112f767
    t: null
    quote: Now the guide sends the sample invoices right when you choose the email option, so it no longer depends on the order of steps.
links:
  learn: []
  objects:
    - object/codeunit/3309
    - object/page/3307
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10568
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10568
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T19:45:45Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Manual"
  - "Ownership: Needs Review"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 27
  deletions: 9
  al: 2
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
objects_unjoined: []
obsoletions: []
backports:
  - number: 10752
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/10752
fixes_issues: []
work_items:
  - 647147
systems:
  - development
quote: Now the guide sends the sample invoices right when you choose the email option, so it no longer depends on the order of steps.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10568 Send sample invoices from the demo guide directly

> The Payables Agent demo guide now sends sample invoices immediately when selecting the email option, rather than deferring the send until setup is saved, ensuring invoices are sent regardless of the order of operations.

[Pull request](https://github.com/microsoft/BCApps/pull/10568) · merged into `main` (BC30) on 2026-08-27 by Explorer986 · 2 files (+27 -9), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Sample invoices are sent synchronously when the email option is chosen in the demo guide
- Send flags are cleared after invoices are sent to prevent duplicate sends when saving setup
- The final success screen only displays after the email has actually been transmitted
- The change removes the dependency on the order in which users perform setup steps
- 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

## Also merged into

- [#10752](https://github.com/microsoft/BCApps/pull/10752) into `releases/29.x` on 2026-08-28

## Context

- Work items: AB#647147
- Labels: AL: Apps (W1), Ownership: Manual, Ownership: Needs Review, Team: Finance
- Systems: development
- From the description: "Now the guide sends the sample invoices right when you choose the email option, so it no longer depends on the order of steps."

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