Skip to main content

Notifications

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.

  • Suggested answer
    Dallefeld Profile Picture
    175 User Group Leader on at
    RE: Explanation About Variant

    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.

  • P V Sarath Profile Picture
    130 on at
    RE: Explanation About Variant

     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
    JAngle Profile Picture
    95 on at
    RE: Explanation About Variant

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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans