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

Announcements

No record found.

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 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

  • Suggested answer
    JAngle Profile Picture
    159 on at
  • Suggested answer
    YUN ZHU Profile Picture
    103,223 Super User 2026 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

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 August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 757 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 451 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 391 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans