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

Announcements

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
    159 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
    235 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,960 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,299 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans