web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to test if page group exist of Not

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I'm working on 3 extensions controlled by 3 boolean fields in company information.

Those extensions have no dependencies.

In each extension, I created a page extension to company information and I put that field in new group named "X Pack".

The result is that the same group name showed 3 time in company information page !!

pastedimage1662990871514v1.png

Is there any way to check the page group already exist or not ?? or any idea how to group all those field in same page group ?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Please share your code.

  • Check if Page group Exist AL Code Profile Picture
    25 on at

    Thanks for your reply, in fact the code is quite simple.

    I would like to check the group already exist then add the field in that existing one, do not create new..

    //Extension A:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

       layout

       {

           addafter("User Experience")

           {

               group("X Pack")

               {

                   CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                   field(DD; Rec.DC) { ApplicationArea = All; }

               }

           }

       }

    }

    //Extension B:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

       layout

       {

           addafter("User Experience")

           {

               group("X Pack")

               {

                   CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                   field(INT; Rec.INT) { ApplicationArea = All; }

               }

           }

       }

    }

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    /Extension A:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

      layout

      {

          addafter("User Experience")

          {

              group("X Pack")

              {

                  CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                 ApplicationArea = All

                  field(DD; Rec.DC) { ApplicationArea = All; }

              }

          }

      }

    }

    //Extension B:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

      layout

      {

          addafter("User Experience")

          {

              group("X Pack")

              {

                  CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                  ApplicationArea = All;

                  field(INT; Rec.INT) { ApplicationArea = All; }

              }

          }

      }

    }

    Pls deployed the updated

    Regards

    Amit Sharm

    www.erpconsultors.com

  • Check if Page group Exist AL Code Profile Picture
    25 on at

    Hi Amit,

    Application Area is not allowed inside the group

    pastedimage1663052575377v1.png

    pastedimage1663052639319v2.png

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 707 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans