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

Get a specific instance of a page object and assign to page variable

(1) ShareShare
ReportReport
Posted on by 25

Hi all,

I have two Pages, one being an actual Page, lets call x, and the other being a CardPart, lets call y, that sits in page x. For those wondering, x and y source tables are of same type, and the part/page are linked via primary key.

I have made it so x calls a function which is in y. The function is very simple and sets a global variable in y to the value of the argument (argument of the function). y has an action that works with the global variable, for simplicity sake lets just say it sends a message of the variable value. 

My first issue is when testing this out, I could see that the argument passed was being recognized in the called function in y, but when clicking the action, the message showing the value was empty. I figured it has something to do with different instances but could not confirm. Eventually I found that you actually can access the instance of the page part by using CurrPage.'Pagename'... -- Now with a little backstory time for my actual issue:

I am trying to get y to now interact back with x but I am having the same issue with the different instances (or so I think). Before when working in x, I could access y's instance because y is a PagePart in x, but how can I make it so in y, I can call a function in x (which is the same instance of x that y is currently in)?

Hope that was clear enough, let me know if anyone needs any clarification,

thanks,

Jaden

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans