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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to get currently active page name or id to a variable in AL , in Business Central

(0) ShareShare
ReportReport
Posted on by 292

Hi,

I want to to get the currently active page ID or Name in business central into a variable. 

example : if a user opens a Customer Page , i need to get that name of the page ("Customer Card") into a variable in my code unit. 

is there a Global variable or a method to get information of currently active page ?

Thanks,

Nishan

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Try docs.microsoft.com/.../page-objectid-method

  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at

    Hi, hope the following will help.

    How to get the opening Page ID and Page name

    https://yzhums.com/20425/

    Thanks.

    ZHU

  • Suggested answer
    Rbansode Profile Picture
    5 on at

    Hi,, you can use the Page.ObjectId(true) procedure. It can also be used with the CurrPage.ObjectId(true) which will return the caption of the currently logged in page. Similar procedures exist for other object types as well if required.

    You can read more about them here -

    docs.microsoft.com/.../page-objectid-method

    docs.microsoft.com/.../reportinstance-objectid-method

    Please verify my answer if it was helpful to you. Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans