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

Community site session details

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

CurrPage.Update in EventSubscriber

(1) ShareShare
ReportReport
Posted on by 373
Hi,
 
I have created an event subscriber for an OnBefore___AssistEdit integration event and I need to set the IsHandled parameter to true to skip the base code.
However, at the end of the base code there is a CurrPage.Update().
How can I call that from the event subscriber?
Is it even possible? If not, what are my options to replicate the base code as much as possible.
Do I need to hide the base field and create my own?
 
-Julie
I have the same question (0)
  • YUN ZHU Profile Picture
    93,438 Super User 2025 Season 2 on at
    CurrPage.Update in EventSubscriber
    As far as I know, there is no good way. CurrPage is only valid on the current page.
    So for the behavior of the page, it is recommended to use Page extension, and the logic can be skipped by event.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Juliem Profile Picture
    373 on at
    CurrPage.Update in EventSubscriber
    So you are saying to still use the event subscriber with the IsHandled := true and add a page extension and do the currpage.update in the onassistedit trigger of the field?
  • YUN ZHU Profile Picture
    93,438 Super User 2025 Season 2 on at
    CurrPage.Update in EventSubscriber
    Yes, I think this would meet your needs.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,204

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,933

#3
YUN ZHU Profile Picture

YUN ZHU 1,885 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans