Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Codeunit

Posted on by 125

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

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Codeunit

    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.

  • MadhuJaisankar Profile Picture
    MadhuJaisankar 125 on at
    RE: Codeunit

    Thank you.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Codeunit

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

  • MadhuJaisankar Profile Picture
    MadhuJaisankar 125 on at
    RE: Codeunit

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

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Codeunit

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Codeunit

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans