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 :
Small and medium business | Business Central, N...
Answered

How return multiple Variables from a procedure?

(0) ShareShare
ReportReport
Posted on by 440

Hi All,

 is it possible to return multiple return variables from procedure ?

I'm using D365BC wave 2, On premises 

I have the same question (0)
  • 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
    440 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

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans