Skip to main content
Business Central forum
Suggested answer

How do I refresh a page in an OnAfterGetRecord() trigger?

editSubscribe (0) ShareShare
ReportReport
Posted on by 479

Currently working on a page extensions for the Sales Invoice page. After modifying a field on the Sales Header, I want to refresh the Sales Invoice page so that it reflects the change. How do I do this?

Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,926 Super User on at
    RE: How do I refresh a page in an OnAfterGetRecord() trigger?

    Hi, I think you can use the following method.

    Page.Update([Boolean]) Method: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/page/page-update-method

    For example,

    pastedimage1655251876793v1.png

    Hope this helps.

    Thanks.

    ZHU

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans