-
Notifications
You must be signed in to change notification settings - Fork 276
Open
Description
Action Group Disappears When Using ActionRef for Promotion
Issue Description
When adding an actionref to promote an action that is inside a group within a page extension, the entire action group disappears from its original location. Only the promoted action remains visible.
This issue affects all action areas including Navigation, Processing, and other action areas.
Environment
- Business Central Version: 27.1
- Platform: Microsoft Dynamics 365 Business Central
- Extension Type: Page Extension
- Area Affected: Actions in Navigation area
Expected Behavior
When promoting an action using actionref, both the original action group in its original location AND the promoted action should be visible.
Actual Behavior
When an actionref is added to the Promoted area:
- ❌ The action group disappears from its original location (Navigation, Processing, etc.)
- ✅ Only the promoted action is visible in the promoted area
- ❌ All actions inside the group become inaccessible from their original location
Impact
- Severity: Medium
- User Impact: Users lose access to the original action location, forcing them to rely only on promoted actions
- Workaround: Remove promotion or move actions outside of groups (both undesirable)
Steps to Reproduce
1. Working Example (Without Promotion)
namespace BeTerna.HandlingUnitManagement.PackageStructure;
using Microsoft.Inventory.Item;
pageextension 5618068 "Item Categories" extends "Item Categories"
{
actions
{
addlast(Navigation)
{
group("BET HUM Just a group")
{
Caption = 'Just a group';
Image = Group;
action("BET HUM Item Card")
{
ApplicationArea = All;
Caption = 'Item Card';
Image = SetupLines;
ToolTip = 'Open Item Card.';
RunObject = page "Item Card";
RunPageMode = View;
}
}
}
// No promotion
}
}Result: ✅ Group and action are visible in Navigation area
2. Non-Working Example (With Promotion)
namespace BeTerna.HandlingUnitManagement.PackageStructure;
using Microsoft.Inventory.Item;
pageextension 5618068 "Item Categories" extends "Item Categories"
{
actions
{
addlast(Navigation)
{
group("BET HUM Just a group")
{
Caption = 'Just a group';
Image = Group;
action("BET HUM Item Card")
{
ApplicationArea = All;
Caption = 'Item Card';
Image = SetupLines;
ToolTip = 'Open Item Card.';
RunObject = page "Item Card";
RunPageMode = View;
}
}
}
addlast(Promoted)
{
actionref("BET HUM Item Card Promoted"; "BET HUM Item Card") { }
}
}
}Result: ❌ Group disappears, only promoted action visible
Note: This issue affects the ability to create well-organized and user-friendly action structures in page extensions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

