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...
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
    133 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
    211 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

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