Change or hide a custom action from the standard page in D365 BC, which is added via another custom extension

Hello Experts, Hope you all are doing well! I recently encountered a new requirement on how to change the name of a custom action and also hide a custom action from the standard page (Sales Order), which is added via another custom extension.

No doubt, one can do so by using a page extension. Suppose one doesn’t have access to the code or symbols from that custom extension. In such a case, how can one simply change the caption of a custom action and also hide a custom action by building and deploying a new extension?

Can anyone please confirm if this is possible or not? Thanks for reading.

Yes, this is possible with a page extension. You can change “Visible” property in the action you want to hide and create new action to do what you want.

Example:

pageextension 50000 "Bank Acc Rec List Ext." extends "Bank Acc. Reconciliation List"
{
    actions
    {
        modify(PostAndPrint)
        {
            Visible = false;
        }
        addafter(PostAndPrint)
        {
            action(CustomPostAndPrint)
            {
                ApplicationArea = All;
                Caption = 'Post and Print';
                Image = Post;
                Promoted = true;
                PromotedIsBig = true;
                PromotedCategory = Process;

                trigger OnAction()
                begin
                    // do something
                end;
            }
        }
    }
}