#IsHandled
Still requesting new IsHandled pattern events in #msdyn365bc?
🚨 Please mind the new guidelines: 🧵

🆕 𝗨𝘀𝗶𝗻𝗴 𝘁𝗵𝗲 𝗜𝘀𝗛𝗮𝗻𝗱𝗹𝗲𝗱 𝗽𝗮𝘁𝘁𝗲𝗿𝗻 𝗳𝗼𝗿 𝗲𝘃𝗲𝗻𝘁𝘀
learn.microsoft.com/en-us/dynami...

- What is the IsHandled pattern?
- Why avoid the IsHandled pattern?
- What to do instead
September 5, 2025 at 6:18 AM
The problem is, that too many subscribers don't exit when IsHandled was already passed as true.
September 5, 2025 at 7:19 AM
I recently saw this #msdyn365bc function GetDate() in table "Sales Line". Why setting the default values for IsHandled and ResultDate? These vars are defined as local vars, so will always have these default values when started. For clarity?
February 13, 2025 at 2:25 PM
𝗖𝗿𝗲𝗮𝘁𝗲 𝗮𝗻 𝗲𝘅𝘁𝗲𝗻𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝗿𝗲𝗾𝘂𝗲𝘀𝘁
learn.microsoft.com/en-us/dynami...

🆕 IsHandled event requirements
learn.microsoft.com/en-us/dynami...
September 29, 2025 at 1:40 PM
nit nit nit ;-)

I've just discovered that Microsoft does not have a naming standard for the boolean variable for the (Is)Handled pattern. I thought it was only IsHandled, but also Handled is used across all repos.
BCApps: github.com/search?q=rep...

Your opinion?
February 13, 2025 at 7:15 AM
🛠️ How to Create Custom Events in Business Central AL Code {Part 1} youtu.be/Riay2MqIwCA?... via @YouTube
#Msdyn365bc #CustomEvent #BCALHelp #ALHelp #BusinessCentral #IntegrationEvent #BusinessEvent #ALCode #IsHandled
🛠️ How to Create Custom Events in Business Central AL Code {Part 1}
YouTube video by saurav dhyani
youtu.be
February 26, 2025 at 8:10 AM
🆕 𝗥𝗲𝗾𝘂𝗲𝘀𝘁𝗶𝗻𝗴 𝗮 𝗻𝗲𝘄 𝗜𝘀𝗛𝗮𝗻𝗱𝗹𝗲𝗱 𝗲𝘃𝗲𝗻𝘁
learn.microsoft.com/en-us/dynami...

- Minimum required information
- Guidance for the proposed publisher
- Submission quality checklist
- Example structure
September 5, 2025 at 6:18 AM
I think this evolved when Microsoft started to mass-insert events on request. Mistakes (such as forgetting to reset IsHandled between two events) happened quite often.
February 13, 2025 at 3:02 PM
Unrelated but... IsHandled IsEvil?
Like when I learned GOTO considered harmful.
en.m.wikipedia.org/wiki/Conside...
Considered harmful - Wikipedia
en.m.wikipedia.org
February 13, 2025 at 10:09 PM