MSBA-359 · Lesson 10 of 12 · 20 min
Hands-on practice
▶ Video coming soon A video version of this lesson is on the way.
The rule Noor gave Joss in October was that every "recognize" bullet had to become a "can do" bullet by building something, however small. Reading about a control add-in, she said, teaches you the word; building one that draws a rectangle and raises an event back into AL teaches you the five properties the exam will ask about. This lesson is the set of exercises they used, mapped to every objective group in the outline. Each exercise is small enough to finish in an evening, has a clear "done when" test, and touches at least one fact that has appeared in this course's practice questions.
Setting up a safe place to practice
Practice needs an environment you can break. There are three reasonable choices, and many developers use more than one.
| Environment | Strengths | Limits |
|---|---|---|
| A Docker container running Business Central | Full control, fast to reset, runs the Test Toolkit and large test runs, works offline | Needs a capable machine and some setup; behavior can differ slightly from online |
| An online sandbox in a partner or trial tenant | Closest to production; admin center, telemetry and Copilot features available | Extensions published from Visual Studio Code disappear when the sandbox is updated; test limits apply |
| A pipeline (AL-Go for GitHub or similar) | Practices source control, builds, analysis and deployment | Needs a repository and some configuration |
Two rules apply to all of them. First, never practice in a customer's environment, and never on a copy of a customer's production data unless the customer has agreed and the data is handled under their rules; use the demonstration company. Second, keep everything in source control from the start, even exercises, so you can see what you changed and roll back. Joss practiced in his Quarrystone development container and kept a private repository called mb820-lab with one folder per exercise.
Domain 1: design solutions (5 to 10 percent)
| No. | Exercise | Done when |
|---|---|---|
| D1 | Open the base application symbols and list five objects from the System Application, Business Foundation and Base Application | You can say for each which app it belongs to and why |
| D2 | Change an app's target from Cloud to OnPrem, declare a DotNet variable, then switch back | You have seen the compiler accept and then reject it |
| D3 | Find an object marked ObsoleteState = Pending in the base application symbols and read its reason and tag | You can explain what will happen when it becomes Removed |
| D4 | Run the AppSourceCop analyzer on a small app with no affixes, then add an affix and an AppSourceCop.json | The affix warnings disappear |
Domain 2: install, develop and deploy (10 to 15 percent)
| No. | Exercise | Done when |
|---|---|---|
| E1 | Create a project with AL: Go!, download symbols and publish a page to your environment | The page opens from the startup object |
| E2 | Add a second launch configuration for attach debugging with breakOnNext = WebServiceClient, and call an API page from a REST client | The debugger stops in the API page code |
| E3 | Record a snapshot with snapshotInitialize, reproduce a bug, finish with Shift+F7 and replay it | You can step through the recorded session offline |
| E4 | Create a multi-root workspace with a main app and a test app that depends on it | Publishing the test app publishes the main app first |
| E5 | Turn on the TranslationFile feature, add a label with a Comment and a Locked label, and create a French (Canada) XLIFF | The caption shows in French when your language is French (Canada) |
| E6 | Add a ruleset that raises one CodeCop warning to an error | The build fails until you fix it |
| E7 | Upload your .app through Extension Management in a sandbox and choose a deploy-to option | You can explain each of the three options |
Exercise E2 was the one Joss had avoided for longest, because Quarrystone's integration tests made attach debugging rarely necessary. It took him forty minutes the first time, most of it spent realizing that a session already open before the debugger attached would not be caught; attach waits for the next session of the chosen kind.
Domain 3: develop objects (30 to 35 percent)
The largest area gets the most exercises. Joss did them in the order of his ratings, starting with the "recognize" bullets.
| No. | Exercise | Done when |
|---|---|---|
| O1 | Build a Role Center with a headline part, a cue part with two cues from FlowFields, and Sections and Creation actions; use it in a profile | You can choose the profile in My Settings and see the Role Center |
| O2 | Build a control add-in that draws a box, raises a ControlReady event and exposes a SetText procedure | AL calls SetText only after ControlReady |
| O3 | Add a list page view with filters and sorting, and an actionref in the Promoted area | The view appears in the filter pane and the action on the action bar |
| O4 | Create an extensible enum that implements an interface, then add a value from a second app | Calling code works for the new value without changes |
| O5 | Write a document report with header and line data items, a Word layout, a request page option and a Language setting from the customer | A customer with a French language code gets French captions |
| O6 | Write a report extension that adds a column and a second layout to a standard report | Both layouts are selectable in Report Layouts |
| O7 | Substitute a standard report with your own through OnAfterSubstituteReport | Running the standard report from its action runs yours |
| O8 | Write a processing-only report that updates records, with a request page filter | It runs without a layout and respects the filter |
| O9 | Write a query joining two tables with an inner join, a Count column and a ColumnFilter, and use it from a report | The report shows aggregated rows from one SQL statement |
| O10 | Write layered permission sets with indirect permissions, test as a user with only those sets, and use the permission recorder | The user can post through code but not edit the table directly |
| O11 | Set InherentPermissions on a setup table read by your pages | A user without your permission sets can open the page that reads setup |
| O12 | Write install and upgrade codeunits that create and then change setup data, guarded by an upgrade tag | Reinstalling and upgrading twice give the same data |
| O13 | Schedule a codeunit with a job queue entry and with TaskScheduler.CreateTask | You can explain when to use each |
O5 took Joss two evenings, and he counted it as the most valuable exercise of the month. Setting CurrReport.Language in the right trigger, finding where the Language codeunit lives, and seeing the French captions appear for one customer and English for the next made the multilanguage report bullet concrete in a way no reading did. He also discovered that he had been confusing the language of the report with the format region, which controls how dates and numbers are printed; the two are set separately.
Domain 4: user experiences and logic (15 to 20 percent)
| No. | Exercise | Done when |
|---|---|---|
| U1 | Add tooltips on table fields, a teaching tip with AboutTitle and AboutText, and InstructionalText on a field | The teaching tip appears the first time the page opens |
| U2 | Build a three-step NavigatePage wizard and register it as assisted setup through Guided Experience | It appears on the Assisted Setup page and marks itself complete |
| U3 | Write a document-style header and line table pair with a status, release and reopen actions, and a posting codeunit that creates ledger-style entries | Posting creates entries and deletes the open document in one transaction |
| U4 | Publish OnBefore and OnAfter integration events with IsHandled in your posting code, and subscribe from a second app | Setting IsHandled skips your standard logic |
| U5 | Use the Event Recorder to find the events raised when a sales order is released | You have subscriber code generated for one of them |
| U6 | Raise an actionable ErrorInfo with a navigation action, and collect several errors with ErrorBehavior Collect | The user sees all errors at once and can open the record |
| U7 | Upload a CSV file with UploadIntoStream into Temp Blob, parse it, and download a result file | The round trip works in the web client |
| U8 | Mark a procedure internal and a global variable in a table extension protected, and call them from a second app | You have seen which calls the compiler allows |
Domain 5: test and monitor (10 to 15 percent)
| No. | Exercise | Done when |
|---|---|---|
| T1 | Install the Test Toolkit in your container and run a standard base application test codeunit from the AL Test Tool | You can read the result and error for each method |
| T2 | Write a test codeunit with Given, When and Then sections, a ConfirmHandler and a ModalPageHandler | The tests pass without any dialog appearing |
| T3 | Write a test that fails against a bug, then fix the bug | The test turns from red to green |
| T4 | Connect an environment to Application Insights and run a KQL query for RT0005 and RT0018 signals | You can name the slowest AL method of the last day |
| T5 | Add a Session.LogMessage call with SystemMetadata classification and TelemetryScope::All, then find it in Application Insights | Your custom event ID appears with its dimensions |
Domain 6: integration (15 to 20 percent)
| No. | Exercise | Done when |
|---|---|---|
| I1 | Call a public test REST service with HttpClient.Get and Send, handle a 404 and parse the JSON | Your code reports the status code instead of failing silently |
| I2 | Build an API page with SystemId as key, DelayedInsert and a bound action, and call both from a REST client | POST inserts a complete record and the action runs on one entity |
| I3 | Publish a codeunit as a web service and call an unbound action | The procedure runs and returns a value |
| I4 | Set DataAccessIntent = ReadOnly on an API query and try to write from it | You have seen the write fail |
| I5 | Store a key with IsolatedStorage.SetEncrypted in Company scope and read it into SecretText | The debugger cannot display the value |
| I6 | Register a Copilot capability as Preview, build a PromptDialog page with Prompt and Content areas, and call a chat model through the AI module in a sandbox | The capability appears on the Copilot & agent capabilities page and the dialog shows a validated proposal |
| I7 | Create a project from the agent template and read its interfaces and configuration page | You can explain what each interface is for |
Exercise I6 needs an Azure OpenAI resource or Business Central's own AI resources in a sandbox, and Copilot features must be allowed for the environment. Joss used the sandbox resource Quarrystone keeps for development. I7 does not need to run end to end: the preview SDK may change, and the exam's emphasis is on what an agent is and how it is controlled. Reading the generated code and explaining the interfaces aloud was enough.
Working through the list
There are 44 exercises. Joss had about a third of them done already from his project work, so he ticked those after a quick check that he could still do them without notes. That left 29, which he spread over five weeks, two or three per study evening, always starting with the outline bullet the exercise covered and finishing by writing one original practice question about what he had just built. The questions went into the bank he used in lesson 12.
Time-boxing helped. Each exercise got a planned time, usually 30 to 60 minutes. If it ran over by half again, he stopped, wrote down where he was stuck, and asked Noor the next day. Several of those notes turned into the best questions in his bank, because a point that stalls a developer in practice is exactly the kind of point an exam can test.
The exam sandbox, once more
Hands-on practice is not only about Business Central. Before the exam, run through the exam sandbox again, the demonstration of the exam interface linked from the study guide. Practice marking items for review, moving between case study tabs and questions, using the review screen, and opening the Microsoft Learn window. Do it once early, as Joss did in lesson 2, and once in the week of the exam, so the interface is familiar on the day.
Practicing with a colleague
Some practice works better in pairs. Twice in November, Noor and Joss swapped roles: Joss explained a bullet aloud as if teaching it, and Noor interrupted with the questions an exam would ask. Explaining exposes gaps faster than reading, because a gap that is invisible on the page becomes obvious the moment you have to say the next sentence. Another useful pair exercise is to review each other's exercise code as if it were a pull request, looking for the traps from lesson 8. If you study alone, recording yourself explaining a bullet and listening back the next day gives a similar effect.
Worked problem
Turning an exercise into questions
Joss has just finished O7, report substitution. How does he turn the exercise into practice questions that will help him on the exam?
Show solution
- Write down the exact names: the ReportManagement codeunit, the OnAfterSubstituteReport event, the NewReportId var parameter.
- Write one recognition question: which approach replaces a report everywhere it runs?
- Write one code question: a subscriber with a gap where the event name goes.
- Write one look-alike question contrasting substitution with a report extension and a new layout.
Answer: Each exercise yields two or three questions in different item styles, which are retested later from the bank.
Common mistakes
MistakePracticing in a customer's environment.
InsteadUse your own container or sandbox with demonstration data.
MistakeOnly reading about "recognize" bullets.
InsteadBuild the smallest working example of each.
MistakeLetting one exercise eat an evening.
InsteadTime-box it, note where you are stuck, and ask.
MistakeSkipping the agent template because the SDK is in preview.
InsteadRead the template and explain its parts; concepts are examinable.
MistakeForgetting the exam sandbox until the day.
InsteadRun it early and again in the exam week.
Summary and key terms
- Practice in a container, a sandbox and a pipeline; never in a customer environment.
- Map every exercise to an outline bullet with a clear done-when test.
- Weight the exercises by the outline: most go to AL objects.
- Start with "recognize" bullets and time-box each exercise.
- Turn each exercise into two or three original practice questions.
- Revisit the exam sandbox in the week of the exam.
- Container
- A Docker-based Business Central instance used for development and automated tests.
- Done-when test
- A concrete result that shows an exercise is complete.
- Time-box
- A planned limit on how long a task may take before you stop and ask for help.
- Question bank
- A personal collection of original practice questions written from exercises.
- Demonstration company
- Sample data such as CRONUS used for practice and testing.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why practice attach debugging with a new session?
Show answer
Attach waits for the next session of the chosen kind; existing sessions are not caught.
Which exercise shows the effect of DataAccessIntent = ReadOnly?
Show answer
Trying to write from a read-only API query and seeing it fail.
What should every exercise end with?
Show answer
An original practice question about what was built.
Where should practice never happen?
Show answer
In a customer's environment.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.