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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to fetch the product variant name in d365 fo x++

(1) ShareShare
ReportReport
Posted on by 235
Hi All, 

  I have a requirement that ,  I have to fetch the product variant name into my report design,
For a selected Item if it is product master type then, how to fetch the active product variant name. 
Categories:
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    298,320 Super User 2025 Season 2 on at
    How to fetch the product variant name in d365 fo x++
    Hi Charan,
     
    Can you tell more about the data source? Usually, there are some fields like Color, Size, etc., on, e.g., a sales order line. The combinations are maintained in the table InventDim where an InventDimId is then stored on the line.
     
    In case you have both the ItemID and the InventDimId, you can build a variant product number using the method EcoResProductNumberBuilderVariant::buildFromProductMasterAndDimensions. Using this value, you can find the variant in the tables EcoResProduct and EcoResDistinctProductVariant. Then the methods on the table EcoResProductTranslation can be used to retrieve the product name and description in a given language.
     
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    1,966 on at
    How to fetch the product variant name in d365 fo x++
    Hi Charan,
     
    I am sharing some tables to work on:
     
    1) InventDimCombination : it contains the variant id and item id.
     
    2) EcoResDistinctProductVariant 
    Relation: InventDimCombination.DistinctProductVariant = EcoResDistinctProductVariant.RecId

    3) EcoResProductTranslation
    Relation: EcoResDistinctProductVariant.RecId = EcoResProductTranslation.Product
     
    EcoResProductTranslation table contains Name field.
     
     
    If this helped, please mark it as "Verified" for others facing the same issue Keep in mind that it is possible to mark more than one answer as verified
     
    Regards,
    Neeraj Kumar

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,140

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 762 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 706 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans