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...
Suggested Answer

Explanation About Variant

(0) ShareShare
ReportReport
Posted on by 130

Explain about the variant in the AL code in detailed explanation, where we can use the variant and any essential information regarding the variant, What is the need of variant in al and please share examples of using the variant.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    152 on at

    This is a good video for covering most of what you have asked for: https://youtu.be/zMLu5BUZ-04

  • P V Sarath Profile Picture
    130 on at

     Thank you for the video.

    It's not that much clear about  variant in the video if you have any other links can you send it. 

    [quote user="P V Sarath"]

    Explain about the variant in the AL code in detailed explanation, where we can use the variant and any essential information regarding the variant, What is the need of variant in al and please share examples of using the variant.

    [/quote]
  • Suggested answer
    Dallefeld Profile Picture
    229 User Group Leader on at

    I always explain variant using the example of T-shirts. You have a Red T-shirt available in sizes of S, M, L and XL. By setting up one Red T-shirt item, you then can add variants for the sizes. You can price by variant, all transactions will track variant, even descriptions can change by variant, stockkeeping units can be setup by variant.

    The largest downside is that BC does not require the user to enter a variant. So in my example of the Red T-shirt, if I forget to choose S, M, L or XL, BC will process the transaction without error and now my inventory by size is off.

    Some users like this feature as they use variant to identify quality holds or defective items.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,121 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 669 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans