================================================================================
Page with area(Prompting)
================================================================================

page 7221104 "Modify Marketing Text"
{
    actions
    {
        area(Prompting)
        {
            action(SuggestMarketingText)
            {
                ApplicationArea = All;
                Caption = 'Suggest marketing text';
                Tooltip = 'Get help writing engaging texts';
                trigger OnAction()
                begin
                    SuggestWithCopilot();
                end;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (actions_section
      (actions_keyword)
      (action_area_section
        (area_keyword)
        (action_declaration
          name: (identifier)
          (property
            name: (property_name)
            value: (identifier))
          (property
            name: (property_name)
            value: (string_literal))
          (property
            name: (property_name)
            value: (string_literal))
          (trigger_declaration
            (trigger_keyword)
            name: (identifier)
            (code_block
              (call_expression
                function: (identifier)
                arguments: (argument_list)))))))))

================================================================================
BankAccReconciliationList with area(Prompting)
================================================================================

page 50100 "Bank Acc. Reconciliation List"
{
    PageType = List;
    
    actions
    {
        area(Prompting)
        {
            action(AIDraftBankRecLines)
            {
                Caption = 'Copilot action';
                Visible = true;
                Enabled = true;
                trigger OnAction()
                begin
                    CopilotAction();
                end;
            }
        }
    }
}

--------------------------------------------------------------------------------

(source_file
  (page_declaration
    (page_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (property
      name: (property_name)
      value: (identifier))
    (actions_section
      (actions_keyword)
      (action_area_section
        (area_keyword)
        (action_declaration
          name: (identifier)
          (property
            name: (property_name)
            value: (string_literal))
          (property
            name: (property_name)
            value: (boolean))
          (property
            name: (property_name)
            value: (boolean))
          (trigger_declaration
            (trigger_keyword)
            name: (identifier)
            (code_block
              (call_expression
                function: (identifier)
                arguments: (argument_list)))))))))
