Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

OnOpenPage trigger AL

(0) ShareShare
ReportReport
Posted on by

Hi All,

I need vendor name or customer name columns in the GL Entry table. 

How can be done by OnOpenPage trigger?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,561 Super User 2024 Season 2 on at
    RE: OnOpenPage trigger AL

    Hi, if you only want to display vendor name or customer name columns on the GL Entries page.

    Hope the following will help.

    https://yzhums.com/13226/

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: OnOpenPage trigger AL

    Adding this information on a page level is maybe not the best approach because if you have several pages looking at the G/L entries you will have to extend all those pages. So instead you should do a table extension on the G/L Entry table.

    But if you really want to do it in a page you should use the OnAfterGetRecord trigger. Then use the source type and source no. to look up the information for either vendor or customer.  But again - i advice you not to follow this approach.  

    This is a request we frequently see from new BC users but after a while when they get used to looking up related info in the system it usually blows over.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans