Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Add optional parameters to a function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

In Dynamics NAV, is there a way to add optional parameters to a function.

Ex: func1(param1, param2, param3)

In here how to make param3 as optional.

Thanks.

*This post is locked for comments

  • Verified answer
    Tina Menezes Profile Picture
    Tina Menezes 2,580 on at
    RE: Add optional parameters to a function

    Hi,

    There is no way to set optional parameters to a function in NAV.

    You can check the following discussion.

    https://forum.mibuso.com/discussion/3703/optional-parameters-in-functions

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Add optional parameters to a function

    I think it is not possible to make parameter as optional but you can pass the value and based on that you can execute the program.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans