I am developing an extension for Business Central (On Cloud) and want to display a specific setup page only when the extension is freshly installed. For subsequent runs, Business Central should behave as usual without showing the setup page again.
The main requirement is to guide users through the setup process during the initial installation of the add-on.
What I Have Tried
-
Install Codeunit:
- Created an Install Codeunit but couldn't achieve the desired behavior.
-
Event Subscriber:
- Tried subscribing to the
OnRegisterManualSetup
procedure in the Guided Experience Codeunit but didn't get the expected results.
- Tried subscribing to the
Question
- How can I ensure a custom setup page runs automatically when the extension is installed for the first time?
- Are there specific events or a recommended approach to implement this functionality?
Any guidance or code samples would be greatly appreciated!