Implementing User Assistance and Onboarding
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 13 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Implementing User Assistance and Onboarding in AL
Introduction: The Philosophy of User-Centric Design
When we develop applications in AL (Application Language) for platforms like Microsoft Dynamics 365 Business Central, we often focus intensely on the logic—the calculations, the data flow, and the integration points. However, the most sophisticated backend logic is ineffective if the end user does not understand how to interact with the interface. User assistance and onboarding are the bridges between your technical architecture and the user’s daily productivity. Without these elements, users are left to guess how a feature works, leading to increased support tickets, frustration, and lower adoption rates of your custom solutions.
User assistance is not merely about writing a help manual that nobody reads. It is about embedding guidance directly into the flow of work. This includes teaching users the "what" and the "how" through contextual cues, guided tours, and instructional text that appears exactly when and where the user needs it. By implementing these features, you transform a complex system into an intuitive workspace. This lesson explores the tools provided within the AL environment to build high-quality user assistance, ensuring your custom extensions are as usable as they are functional.
Not read yet
The Foundation: Understanding the User Experience (UX) in AL
To build effective onboarding, you must first understand the standard components available in the development environment. Business Central provides a set of UI patterns designed to keep the user experience consistent across the entire product. When you customize the interface, you are not just adding fields or actions; you are participating in a larger ecosystem. If your onboarding approach deviates too far from the standard patterns, you create cognitive friction, forcing the user to "re-learn" how to interact with your specific app.
The primary goal of onboarding is to reduce the "time to value." This is the interval between a user installing your application and realizing its core benefit. If your app requires a complex setup process, the onboarding process must guide the user through that setup without overwhelming them. We achieve this by using a combination of Teaching Tips, Tours, and instructional text areas.
Callout: Onboarding vs. Documentation While documentation provides a reference for troubleshooting or deep dives into features, onboarding is an active, guided process. Documentation is passive—the user must seek it out. Onboarding is proactive—it greets the user in the interface to guide their first steps. Effective AL development balances both, but for the initial experience, proactive onboarding is significantly more impactful for user retention.
Not read yet
Implementing Teaching Tips: The Modern Approach to Guidance
Teaching Tips are the most effective way to provide contextual assistance in the modern Business Central interface. They are small, non-intrusive pop-ups that highlight specific UI elements—like a button, a field, or a navigation menu—and explain their purpose. Unlike old-school "Help" buttons that open a separate browser tab, Teaching Tips live inside the application, allowing the user to read the tip and immediately take action.
How to Configure a Teaching Tip in AL
To implement a Teaching Tip, you define it in a codeunit or as part of a PageExtension. The system uses the TeachingTip object type to define the content and the target.
codeunit 50100 "Onboarding Management"
{
procedure ShowMyFirstTip()
var
TeachingTip: TeachingTip;
begin
TeachingTip.Title := 'Welcome to Your New Workflow';
TeachingTip.Body := 'Click here to start the automated import process.';
TeachingTip.Target := 'ActionName'; // The name of the action or field
TeachingTip.Show();
end;
}
When implementing these tips, you must ensure that they do not block the user’s workflow. A common mistake is to attach a Teaching Tip to every single element on a page. This creates "notification fatigue," where the user becomes so annoyed by the pop-ups that they immediately click "Dismiss" without reading any of them. Instead, use Teaching Tips sparingly to highlight:
- New features that were added in a recent update.
- Complex fields that require specific formatting or data input.
- Crucial action buttons that are not immediately obvious to a new user.
Not read yet
Designing Guided Tours for Feature Discovery
While Teaching Tips are excellent for isolated elements, Guided Tours take the user on a journey. A tour is a sequence of tips that walk a user through a multi-step process. For example, if you have built a custom extension that manages vendor onboarding, you might create a tour that starts at the Vendor Card, moves to the "Attach Documents" button, and ends at the "Submit for Approval" action.
Best Practices for Building Tours
When designing a tour, keep the following principles in mind to ensure the user stays engaged:
- Keep it short: A tour should never exceed 5 to 7 steps. If your process takes longer than that, break it into smaller, feature-specific tours.
- Focus on the outcome: Start the tour by explaining what the user will achieve by completing the steps.
- Provide an escape hatch: Always allow the user to skip or exit the tour at any time. Forcing a user to complete a tutorial is a sure way to drive them away from your application.
- Use clear language: Avoid technical jargon. Use verbs that describe the user's intent, such as "Click this to save," rather than "Invoke the record insertion procedure."
Note: Always test your tours on different screen resolutions. A target element that appears in the center of the screen on a 27-inch monitor might be pushed off-screen on a 13-inch laptop, causing the Teaching Tip to point to empty space or behave unexpectedly.
Not read yet
Utilizing Instructional Text Areas
Sometimes, a pop-up is too intrusive, but a simple label is not enough. In these cases, use the InstructionalText property on pages. This is static text that appears at the top of a page or a FastTab to explain the context of the data being displayed.
This is particularly useful for configuration pages. If your extension requires a user to enter API keys or file paths, use the InstructionalText property to explain why this information is needed and where they can find it. By placing this text directly above the fields, you provide the answer before the user even thinks to ask the question.
Example: Implementing Instructional Text
pageextension 50101 "Vendor Ext" extends "Vendor Card"
{
layout
{
addbefore(General)
{
group(SetupInstruction)
{
Caption = 'Configuration Guide';
InstructionalText = 'To enable automatic invoice processing, ensure the "Invoice Email" field is populated and the "Auto-Process" toggle is set to Yes.';
}
}
}
}
Not read yet
The Role of the "Assisted Setup" Wizard
For more complex configurations, the best practice is to use the Assisted Setup feature. This is a built-in framework that allows you to create a wizard-style interface. The Assisted Setup is the gold standard for onboarding in Business Central because it provides a consistent, professional experience that users are already familiar with from the core application.
Steps to Create an Assisted Setup
- Define the Assisted Setup entry: You need to register your wizard in the
Assisted Setuptable. This makes your guide appear in the "Assisted Setup" list in the application. - Create the Wizard Page: Build a standard page of type
NavigatePage. This page type is specifically designed for multi-step wizards. - Implement the Logic: Use the
OnActiontriggers of your "Next" and "Back" buttons to save data and move the user through the steps. - Mark as Completed: Once the user reaches the final step, update the status in the
Assisted Setuptable so the system knows the onboarding is finished.
Comparison: Teaching Tips vs. Assisted Setup
| Feature | Best For | Implementation Effort |
|---|---|---|
| Teaching Tips | Highlighting new features or specific buttons | Low |
| Instructional Text | Explaining complex field inputs | Very Low |
| Assisted Setup | Multi-step configuration and onboarding | High |
Warning: Do not assume that every user will read your onboarding material. Always design your UI so that it is functional even if the user ignores the guidance. The onboarding should be an enhancement, not a requirement for basic operation.
Not read yet
Common Pitfalls and How to Avoid Them
Even with the best intentions, developers often fall into traps that degrade the user experience. Understanding these pitfalls is the first step toward avoiding them.
Pitfall 1: The "Wall of Text"
Developers often try to explain everything in a single Teaching Tip. If a user sees a pop-up containing three paragraphs of text, they will close it immediately.
- The Fix: Use bullet points, bold text for key terms, and keep the total word count under 50 words per tip. If you need more space, link to a documentation page or an external video resource.
Pitfall 2: Ignoring Mobile/Tablet Users
Business Central is a cross-platform application. A layout that works perfectly on a desktop browser might be broken on a mobile device.
- The Fix: Test your onboarding UI on the Business Central mobile app. Ensure that your Teaching Tips are positioned in a way that doesn't obscure the keyboard or the navigation menu on smaller screens.
Pitfall 3: The "Forever Tour"
Some developers build tours that trigger every time a user logs in until the user clicks "Finish." This is highly frustrating for power users who already know how the system works.
- The Fix: Use the
IsolatedStorageorUser Settingsto track whether a user has already completed the tour. Once they finish it, never show it to them again unless they specifically go to a "Help" menu to re-run it.
Pitfall 4: Misleading Targets
Attaching a tip to an element that moves or is conditionally hidden can cause the tip to appear in a random location.
- The Fix: Only attach tips to stable UI elements. If you are using a
Visibleproperty on a field, ensure that the Teaching Tip is also controlled by that same logic, or you risk the tip pointing to a location where the field no longer exists.
Not read yet
Best Practices for Professional Onboarding
To elevate your AL development, follow these industry-standard practices:
- Use Consistent Tone: Your writing should be professional, encouraging, and clear. Avoid overly casual language, but don't sound like a legal document. Use the "User-First" perspective: "You can use this to..." instead of "The system allows the user to..."
- Provide a "Help" Fallback: Even if your onboarding is perfect, some users will still get stuck. Always provide a link in your onboarding steps that leads to a detailed support page or a contact email for your support team.
- Localize Early: If you plan to release your application in multiple regions, ensure that all your strings for Teaching Tips and instructional text are placed in your
.xlftranslation files. Do not hardcode strings directly in your AL code. - Measure Success: Use telemetry to track how many users actually complete your tours. If 90% of users close your tour on the first step, it is a clear signal that the first step is either too long, too confusing, or unnecessary.
Not read yet
Deep Dive: Advanced UI Customization for Assistance
Beyond the built-in Teaching Tips and Assisted Setup, you can create custom UI elements to assist users. For instance, you could create a "Status Banner" at the top of a page that changes color based on the state of the data.
Example: Dynamic Status Banner
Using a UserControl or simply a Group with a specific color style (if supported by the current platform version), you can provide visual feedback.
page 50102 "Data Validation Page"
{
layout
{
area(Content)
{
group(StatusGroup)
{
ShowCaption = false;
field(StatusMessage; StatusMessage)
{
Editable = false;
Style = Favorable; // Green text
Caption = 'Status';
}
}
}
}
var
StatusMessage: Text;
trigger OnOpenPage()
begin
if CheckDataCompleteness() then
StatusMessage := 'Setup is complete!'
else
StatusMessage := 'Please fill in the required fields to proceed.';
end;
}
While this isn't a "tip" in the traditional sense, it acts as a form of passive onboarding. It tells the user exactly what they need to do without needing to click through a series of pop-ups. This is highly effective for data-heavy applications where the user's primary goal is to reach a "Valid" state for their records.
Not read yet
Integrating with the Business Central "Help" System
Microsoft provides a mechanism to link your custom help content to the standard Help pane. By configuring your project’s app.json file, you can point to an external URL.
{
"helpBaseUrl": "https://yourcompany.com/help/",
"contextSensitiveHelpUrl": "https://yourcompany.com/help/article?id={0}"
}
When a user presses F1 or clicks the "Help" icon, the system will use this configuration to direct them to the appropriate documentation. This is a critical step for any professional application. You should always ensure that your onboarding flow links back to these help articles for users who want to learn more.
Building a Culture of User-Centricity
Ultimately, the best onboarding is the result of empathy. As a developer, you know the code inside and out. You know why a field is named "GL_Account_Code_01" and why it requires a specific format. The user does not. When you are designing your onboarding, step away from your IDE and look at your page as if you are a new employee who has never seen the application before.
Ask yourself these questions:
- What is the first thing I notice on this page?
- Is it clear what the most important action is?
- If I click this button, do I know what will happen?
- Is there any terminology that I might not understand?
By answering these questions, you will identify gaps in your UI. Use your onboarding tools to fill those gaps. If a button is confusing, don't just hope the user figures it out—add a Teaching Tip. If a page requires a complex sequence of data entry, don't just add a long manual—build an Assisted Setup wizard.
Not read yet
Implementation Steps: A Checklist for Your Next Feature
When you are ready to add onboarding to a new feature, follow this checklist to ensure a thorough implementation:
- Draft the Content: Write the text for your tips and tours in a document first. Ensure the language is consistent and clear.
- Identify the Targets: List the UI elements that are the most critical for the user to understand.
- Choose the Tool: Decide if the guidance should be a static
InstructionalText, aTeachingTip, or anAssistedSetupwizard. - Develop the Logic: Write the AL code to trigger the assistance.
- Localize: Move all text to your
.xlffiles. - Test for Accessibility: Ensure that your tips are reachable via keyboard navigation and compatible with screen readers.
- Review with Stakeholders: Have someone who has never used the app walk through your onboarding flow. Watch them, but don't help them. If they get stuck, your onboarding needs refinement.
Not read yet
FAQ: Common Questions on User Assistance
Q: Can I use Teaching Tips on third-party extensions? A: Generally, no. You can only target elements that are part of your own extension or the base application that you have extended. You cannot inject tips into other people's custom extensions unless they have specifically exposed those elements for you.
Q: How do I handle translations for onboarding text?
A: Use the standard Label object in AL. Define your labels with Locked = false and provide the translations in your translation files. This ensures that when a user changes their language setting, your onboarding text changes automatically.
Q: Should I use images in my Teaching Tips? A: The current AL framework for Teaching Tips is primarily text-based. While you can include basic formatting, embedding images directly into the tips is not supported. If you need to show an image, link to a documentation page that contains the visual aid.
Q: What if my onboarding is too long? A: If you find yourself writing a long guide, reconsider your UI design. If a process is so complex that it requires a 20-step guide, the process itself is likely too complex for the user. Look for ways to automate the process or simplify the UI before trying to "fix" it with more onboarding.
Callout: The Power of Less In UI design, the best way to help a user is often to remove things rather than add them. If you feel the need to add a tip to explain why a field exists, consider if that field is actually necessary. If it is, consider if there is a better way to label it or a better place to put it. Onboarding is a safety net; it should not be the primary way users interact with your application.
Not read yet
Key Takeaways
- Onboarding is Proactive: Move beyond passive documentation by embedding guidance directly into the UI using Teaching Tips and Guided Tours.
- Consistency is Key: Align your onboarding patterns with the core Business Central UX to reduce cognitive load and improve user adoption.
- Prioritize the "Time to Value": Focus your onboarding efforts on the initial setup and the core tasks that provide the most immediate benefit to the user.
- Test and Iterate: Always test your onboarding flows with actual users. If they are skipping your tips, the tips are likely not providing enough value or are appearing at the wrong time.
- Use the Right Tool for the Job: Use
InstructionalTextfor static guidance,TeachingTipsfor contextual cues, andAssistedSetupfor complex, multi-step configurations. - Keep it Concise: Avoid "notification fatigue" by being selective about when and where you use Teaching Tips. Keep text short, actionable, and jargon-free.
- Accessibility Matters: Ensure that all your user assistance features are accessible to all users, including those who rely on screen readers or keyboard navigation.
By following these principles and utilizing the tools provided in AL, you can create applications that are not only powerful but also inviting and easy to master. Remember that your goal as a developer is to make the user feel confident and capable. When you invest in high-quality onboarding, you are investing in the long-term success of your users and your application.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
Spend your points to unlock exam-style practice questions
Spend points to unlock MB-820 exam-style practice questions.
Practice for MB-820