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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Codeunit

(0) ShareShare
ReportReport
Posted on by 127

Hi Friends

If anyone have a solution?

What is the use of adding parameters in OnRun trigger? example OnRun(VAR Rec : Record "Purchase Header")

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    you can search and see how the Codeunit 80,90 or 91 is working when you post the Sales and Purchase document.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Just go to your codeunit properties and set the TableNo field to your Record that you want as input in OnRun trigger.

  • MadhuJaisankar Profile Picture
    127 on at

    That i Know brother,but what is the use of it?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    The use is to permit to pass a record parameter to a codeunit as direct input (like in Posting codeunits).

  • MadhuJaisankar Profile Picture
    127 on at

    Thank you.

  • Suggested answer
    RockwithNav Profile Picture
    8,635 Super User 2025 Season 2 on at

    Brother in a Nutshell thats the same thing what you do when u make a new function and add respective parameters.

    On RUn trigger you cannot add Parameters that way, You can just add a Record Parameter this way.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans