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

Flowfield : Pass global var or function to CONST input

(0) ShareShare
ReportReport
Posted on by 3,390

Hi Guys

I have a calculation as below where instead of hardcoding warehouse code, can I use a variable or function so the flow field is more dynamic based on the company? Below highlighted in Yellow I'm trying to pass a function to const but its not accepted 

            CalcFormula = sum("Item Ledger Entry".Quantity

                                                            WHERE("Item No." = FIELD("No."),

                                                                  "Global Dimension 1 Code" = FIELD("Global Dimension 1 Filter"),

                                                                  "Global Dimension 2 Code" = FIELD("Global Dimension 2 Filter"),

                                                                  "Location Code" = const(GetLocationCode),

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Try a flow filter. Explained here: https://youtu.be/MQNbPHft4uI

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 740 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 531 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 310 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans