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 :
Finance | Project Operations, Human Resources, ...
Unanswered

bom version entity does not contain inventstyleid field i want to import it into bom version

(0) ShareShare
ReportReport
Posted on by 95

bom version entity does not contain inventstyleid  field i want to import it into bom version 

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Amr,

    If something is missing, it would be possible to customize the entity and add the missing inventory dimension. This requires development skills.

  • WillWU Profile Picture
    22,363 on at

    Hi amr abdelaziz,

    You can create extension of standard data entity and add custom field in data entity or duplicate the original data entity and add your new field in the new data entity, it depends on what you want to achieve.

    pastedimage1604631414091v1.pngpastedimage1604631446888v2.png

    You can drag the Inventstyleid field under the inventdim data source in the BOMBillOfMaterialsVersionV2Entity data entity into the field, and then create the field in the staging table.

  • amr abdelaziz Profile Picture
    95 on at

    Hi Will Wu
    Thanks for replay

    I have add inventStyleid field in DMFBOMVersionEntity table
    and modify method generateInventDimID in DMFBOMVersionEntityClass


    /// <summary>
    /// Find(s) or creates and set the Invent dim.
    /// </summary>
    /// <param name="_stagingToTarget">
    /// Indicates if the method is called to generate target field values (true) or staging table values (false).
    /// </param>
    /// <returns>
    /// Returns set of inventDim data as a container.
    /// </returns>
    [DMFTargetTransformationAttribute(true),DMFTargetTransformationDescAttribute("@DMF349"),
    DMFTargetTransformationSequenceAttribute(2)
    ,DMFTargetTransFieldListAttribute([fieldStr(DMFBOMVersionEntity,ConfigId),fieldStr(DMFBOMVersionEntity,InventColorId),fieldStr(DMFBOMVersionEntity,InventSiteId),fieldStr(DMFBOMVersionEntity,InventSizeId),fieldStr(DMFBOMVersionEntity,InventStyleId)])
    ]
    public container generateInventDim(boolean _stagingToTarget = true)
    {
    container res;

    if (_stagingToTarget)
    {
    inventDim = DMFDimensionHelper::generateInventDimID(entity);
    res = [inventDim.InventDimId];
    }
    else
    {
    inventDim = InventDim::find(target.InventDimId);

    res = [
    inventDim.ConfigId,
    inventDim.InventColorId,
    inventDim.InventSiteId,
    inventDim.InventSizeId,
    inventDim.InventStyleId];//********amr******
    }

    return res;

    }


    but where i can find the standard data entity (bomversion entity) to duplicate it
    how can i get this image you sent

  • André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Amr,

    I think Will did duplicate the standard entity. If you can find the standard BOM entity and have a Visual Studio project open based on a new extension model, you can right-click the entity and choose to duplicate the current entity into the open project.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans