{"title":"CustomActionType Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-customactiontype-property/","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/properties/devenv-customactiontype-property, 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/properties/devenv-customactiontype-property","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":"Sets the type of the custom action.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":97,"chars":34},{"level":2,"title":"Property value","slug":"property-value","at":131,"chars":433},{"level":2,"title":"Remarks","slug":"remarks","at":564,"chars":161},{"level":2,"title":"Examples","slug":"examples","at":725,"chars":2599},{"level":2,"title":"Related information","slug":"related-information","at":3324,"chars":115}],"text":"> Version: _Available or changed with runtime version 10.0._\nSets the type of the custom action.\n## Applies to\n Page Custom Action\n## Property value\nValue|Available or changed with|Description\nFlow|runtime version 10.0|An action that can trigger a Power Automate Flow.\nFlowTemplate|runtime version 11.0|An action that can trigger a Power Automate template editor to create a new Flow from a specific template.\nFlowTemplateGallery|runtime version 11.0|An action that can trigger a Power Automate template gallery to create a new Flow from a selection of templates.\n## Remarks\nTo learn more about Power Automate flows with Business Central, see Power Automate Integration Overview<../../powerplatform/power-automate-overview>.\n## Examples\nThe following examples illustrate the syntax of the three custom action types. The first example extends the Customer Card page with a promoted action that runs a Power Automate flow that has the flow ID `00001111-aaaa-2222-bbbb-3333cccc4444`.\n```al\npageextension 50100 CustomerCardExt extends \"Customer Card\"\n{\n    actions\n    {\n\n        addlast(processing)\n        {\n            customaction(MyFlowAction)\n            {\n                ApplicationArea = All;\n                CustomActionType = Flow;\n                FlowId = '00001111-aaaa-2222-bbbb-3333cccc4444';\n                FlowEnvironmentId = 'Default-44445555-eeee-6666-ffff-7777aaaa8888';\n            }\n        }\n        addfirst(Promoted)\n        {\n            actionref(MyFlowPromoted; MyFlowAction)\n            {\n            }\n        }\n\n    }\n}\n```\nThis next code example extends the Customer Card page with a promoted action that triggers opening a specific Power Automate template wizard directly. The FlowTemplateId property specifies, which template wizard to open.\n```al\npageextension 50100 CustomerCardExt extends \"Customer Card\"\n{\n    actions\n    {\n\n        addlast(processing)\n        {\n            customaction(MyFlowAction)\n            {\n                ApplicationArea = All;\n                CustomActionType = FlowTemplate;\n                FlowTemplateId = '00001111-aaaa-2222-bbbb-3333cccc4444';\n                FlowCaption = 'Create a Power Automate flow using a template';\n            }\n        }\n        addfirst(Promoted)\n        {\n            actionref(MyFlowPromoted; MyFlowAction)\n            {\n            }\n        }\n\n    }\n}\n```\nThis third code example likewise extends the Customer Card page with a promoted action, this time it triggers opening the Power Automate template gallery wizard for the user to create a new Flow from a selection of templates. The FlowTemplateCategoryName property sets the category used to filter the list of Power Automate templates shown in the template gallery.\n```al\npageextension 50100 CustomerCardExt extends \"Customer Card\"\n{\n    actions\n    {\n\n        addlast(processing)\n        {\n            customaction(MyFlowAction)\n            {\n                ApplicationArea = All;\n                CustomActionType = FlowTemplateGallery;\n                FlowTemplateCategoryName = 'd365bc_approval_generalJournal';\n                FlowCaption = 'Select and create a Power Automate flow using a template';\n            }\n        }\n        addfirst(Promoted)\n        {\n            actionref(MyFlowPromoted; MyFlowAction)\n            {\n            }\n        }\n\n    }\n}\n```\n## Related information\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}