{"title":"Simple role center code example","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-simple-role-center-example/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-simple-role-center-example, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-simple-role-center-example","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Build a simple Business Central role center in AL with headline and cue parts, navigation actions, and a profile that references the page.","date":"2026-11-05","meta":{"topic":"how-to"},"outline":[{"level":1,"title":"Simple role center code example","slug":"simple-role-center-code-example","at":0,"chars":4501},{"level":2,"title":"Related information","slug":"related-information","at":4195,"chars":306}],"text":"# Simple role center code example\nThe AL code in this article creates a simple role center for users assigned to a new profile. Defining the profile doesn't assign users or grant data permissions.\n![Role center page showing a headline, an Invoices cue tile group, and navigation actions.]\nLearn more about role centers in devenv-designing-role-centers.\nThis example uses the RoleCenterHeadline page from Creating a role center headline<devenv-create-role-center-headline> and the SalesInvoiceCuePage page from Creating cues and action tiles<devenv-cues-action-tiles>. Add those objects to the same project. Verify the user's permissions before deploying.\nThe sales-document entity actions target integration pages. Their navigation behavior needs to suit your users' workflow.\n```al\npage 50125 MyRoleCenter\n{\n    PageType = RoleCenter;\n    Caption = 'My Role Center';\n\n    layout\n    {\n        area(RoleCenter)\n        {\n            group(Group1)\n            {\n                part(Part1; RoleCenterHeadline)\n                {\n                    ApplicationArea = All;\n                }\n\n                part(Part2; SalesInvoiceCuePage)\n                {\n                    ApplicationArea = All;\n                    Caption = 'Invoices';\n                }\n            }\n        }\n    }\n\n    actions\n    {\n        area(Sections)\n        {\n            group(PostedInvoices)\n            {\n                Caption = 'Posted Invoices';\n                Image = RegisteredDocs;\n                action(PostedServiceInvoices)\n                {\n                    Caption = 'Posted Service Invoices';\n                    RunObject = Page \"Posted Service Invoices\";\n                    ApplicationArea = All;\n                }\n\n                action(PostedSalesInvoices)\n                {\n                    Caption = 'Posted Sales Invoices';\n                    RunObject = Page \"Posted Sales Invoices\";\n                    ApplicationArea = All;\n                }\n\n                group(SalesDocuments)\n                {\n                    Caption = 'Sales Documents';\n                    action(\"Sales Document Entity\")\n                    {\n                        ApplicationArea = All;\n                        RunObject = page \"Sales Document Entity\";\n                    }\n                    action(\"Sales Document Line Entity\")\n                    {\n                        ApplicationArea = All;\n                        RunObject = page \"Sales Document Line Entity\";\n                    }\n                }\n            }\n        }\n\n        area(Embedding)\n        {\n\n            action(Sales)\n            {\n                Caption = 'Sales lists';\n                RunObject = Page \"Sales list\";\n                ApplicationArea = All;\n            }\n\n            action(Services)\n            {\n                Caption = 'Service lists';\n                RunObject = Page \"Service list\";\n                ApplicationArea = All;\n\n            }\n\n        }\n\n        area(Processing)\n        {\n            action(SeeSalesInvoices)\n            {\n                ApplicationArea = All;\n                Caption = 'See Sales Invoices';\n                RunObject = Page \"Posted Sales Invoices\";\n                ToolTip = 'Open the posted sales invoice list.';\n            }\n\n        }\n\n        area(Creation)\n        {\n            action(AddSalesInvoice)\n            {\n                ApplicationArea = All;\n                Caption = 'Add Sales Invoice';\n                Image = NewInvoice;\n                RunObject = Page \"Sales Invoice\";\n                RunPageMode = Create;\n                ToolTip = 'Create a new sales invoice.';\n            }\n        }\n\n        area(Reporting)\n        {\n            action(SalesInvoicesReport)\n            {\n                ApplicationArea = All;\n                Caption = 'Sales Invoices Report';\n                Image = \"Report\";\n                RunObject = Report \"Standard Sales - Invoice\";\n                ToolTip = 'Run the sales invoice report.';\n            }\n        }\n    }\n}\n\n// Creates a profile that uses the Role Center\nprofile MyProfile\n{\n    ProfileDescription = 'Sample Profile';\n    RoleCenter = MyRoleCenter;\n    Caption = 'My profile';\n}\n```\n## Related information\nAL development environment<devenv-reference-overview>\nPage extension object<devenv-page-ext-object>\ndevenv-actions-overview\nAdd pages and reports to Tell Me<devenv-al-menusuite-functionality>\nPersonalize your workspace</ui-personalization-user>\nUse Designer<devenv-inclient-designer>"}