{"title":"Simple card page code example","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-simple-card-page-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-card-page-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-card-page-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":"Provides AL code for a simple card type page.","date":"2021-04-01","meta":{"topic":"article"},"outline":[{"level":1,"title":"Simple card page code example","slug":"simple-card-page-code-example","at":0,"chars":2989},{"level":2,"title":"Related information","slug":"related-information","at":2679,"chars":310}],"text":"# Simple card page code example\nThe AL code in this article creates a simple card page that displays records from an existing table.\n![Card page example.]\nFor a more detailed explanation of the list page, see Designing Card and Document Pages<devenv-designing-card-pages>.\n```al\npage 50112 SampleCustomerCard\n{\n    PageType = Card;\n    ApplicationArea = All;\n    UsageCategory = Administration;\n    SourceTable = Customer;\n\n    //Defines the names for promoted categories for actions.\n    PromotedActionCategories = 'New,Process,Report,Manage,New Document,Request Approval,Customer';\n\n    layout\n    {\n        area(Content)\n        {\n            //Defines a FastTab that has the heading 'General'.\n            group(General)\n            {\n                field(\"No.\"; \"No.\")\n                {\n                    ApplicationArea = All;\n\n                }\n                field(Customer; Name)\n                {\n                    ApplicationArea = All;\n\n                }\n            }\n\n            //Defines a FastTab that has the heading 'Contact'.\n            group(Contact)\n            {\n                field(Name; Contact)\n                {\n                    ApplicationArea = All;\n\n                }\n                field(Phone; \"Phone No.\")\n                {\n                    ApplicationArea = All;\n\n                }\n            }\n        }\n    }\n\n    actions\n    {\n        area(Processing)\n        {\n\n            //Defines action that display under the 'Actions' menu.\n            action(\"New Sales Quote\")\n            {\n                ApplicationArea = All;\n                RunObject = page \"Sales Quote\";\n                Promoted = true;\n                PromotedCategory = New;\n                Image = NewSalesQuote;\n                trigger OnAction();\n                begin\n\n                end;\n            }\n            action(\"Banks Account\")\n            {\n                ApplicationArea = All;\n                RunObject = page \"Customer Bank Account List\";\n                Promoted = true;\n\n                //Promotes the action to the category named 'Customer'.\n                PromotedCategory = Category7;\n                Image = BankAccount;\n                trigger OnAction();\n                begin\n\n                end;\n            }\n\n        }\n        area(Reporting)\n        {\n\n            //Defines action that display under the 'Report' menu.\n            action(\"Statement\")\n            {\n                ApplicationArea = All;\n                RunObject = codeunit \"Customer Layout - Statement\";\n                trigger OnAction();\n                begin\n\n                end;\n            }\n        }\n    }\n    var\n        myInt: Integer;\n}\n```\n## Related information\nAL Development Environment<devenv-reference-overview>\nPage Extension Object<devenv-page-ext-object>\ndevenv-actions-overview\nAdding Pages and Reports to Search<devenv-al-menusuite-functionality>\nPersonalizing Your Workspace</ui-personalization-user>\nUse Designer<devenv-inclient-designer>"}