Hi, Readers.
Today I would like to share another mini tip about Business Central, how to add a setup to the Manual Setup (1875, List) page. This is a question I previously saw in the Dynamics 365 Community.
I have a few setups in my extension which I want to add in the Manual Setup page of Business Central. How can I do this?
In Business Central, Page 1901 “Assisted Setup” of the base application gives users quick access to all assisted setup guides.

In Dynamics 365 Business Central: How to create a Wizard (NavigatePage) and Assisted Setup, we discussed how to create a new wizard (NavigatePage) and add it to Page 1901, “Assisted Setup”. Microsoft also provides detailed information in the documentation, more details: Designing assisted setup guides

And if an area isn’t covered by an assisted setup, choose the settings icon to open the Settings menu. icon, and then the Advanced Settings action.

In Advanced Settings, the Manual Setup section provides access to setup pages where you can fill in setup fields for all areas manually.

PS: You can also simply search for Manual Setup in Tell Me.


So how do you add a setup page to the Manual Setup (1875, List) page? It is not mentioned in the Microsoft documentation.
This is not difficult; we can use the same codeunit.
Codeunit “Guided Experience”: Manage the guided experience items that users can access.

The following two standard methods can be used.


And you can use the event below.
OnRegisterManualSetup: The event that is raised so that subscribers can add the new manual setups that can be displayed in the Manual Setup page.

Let’s take a look at a specific example.

Test code:
codeunit 50102 "AddToDoManualSetup"
{
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Guided Experience", OnRegisterManualSetup, '', true, true)]
local procedure OnRegisterAssistedSetup()
var
ManualSetup: Codeunit "Guided Experience";
GuidedExperienceType: Enum "Guided Experience Type";
AssistedSetupGroup: Enum "Assisted Setup Group";
VideoCategory: Enum "Video Category";
begin
if not ManualSetup.Exists(GuidedExperienceType::"Manual Setup",
ObjectType::Page,
Page::"ToDoAssistedSetup") then
ManualSetup.InsertManualSetup(
'Create a task for your team',
'Add a to-do',
'Register a task for your team and assign people',
2000,
ObjectType::Page,
Page::ToDoAssistedSetup, Enum::"Manual Setup Category"::General,
'Add a to-do');
end;
}Dnoe.

Great, give it a try!!!😁
END
Hope this will help.
Thanks for reading.
ZHU




コメント