bcquality/community/knowledge/events
waldo1001 f0bc7c5946 knowledge(events): qualify StartSession async semantics and fix concurrency-unsafe sample key
Addresses PR #152 review: StartSession is a fire-and-forget background
session (Ok reports only whether it started, not whether the codeunit
succeeded, and errors inside it do not propagate), so the Best Practice
now scopes the recommendation and calls out the durable status/error
channel a synchronous-success write needs. The good sample's
FindLast()+1 entry-number pattern raced under concurrent background
sessions; switched to AutoIncrement, which the platform guarantees is
unique across concurrent transactions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-15 11:20:56 +02:00
..
changecompany-runs-triggers-in-the-calling-company.bad.al knowledge(events): ChangeCompany leaves triggers and trigger-event subscribers running in the calling company 2026-09-15 11:20:56 +02:00
changecompany-runs-triggers-in-the-calling-company.good.al knowledge(events): qualify StartSession async semantics and fix concurrency-unsafe sample key 2026-09-15 11:20:56 +02:00
changecompany-runs-triggers-in-the-calling-company.md knowledge(events): qualify StartSession async semantics and fix concurrency-unsafe sample key 2026-09-15 11:20:56 +02:00