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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How return multiple Variables from a procedure?

(0) ShareShare
ReportReport
Posted on by 442

Hi All,

 is it possible to return multiple return variables from procedure ?

I'm using D365BC wave 2, On premises 

  • Verified answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    Yes is it possible, not to return but the similar thing you can try!

    One way is create a parameter and make it as Var. You can make any number of parameters and pass it as Var.

    The other way is, if you want to return a value of the same type for example decimal value, then you can create an array as parameter with var and assign the values to the array.

    Cheers

    Avinash B

  • Suggested answer
    Marshal Profile Picture
    442 on at

    Hi All

    I hope there is no direct way to return multiple return variables from a procedure, instead of that pass your parameter with VAR key word (pass by ref), inside the procedure you can modify/ assign values to this variable parameters, this parameters can be used as a global variable. 

    pastedimage1574752474600v1.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans