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 

  • André Arnaud de Calavon Profile Picture
    292,884 Super User 2025 Season 1 on at
    RE: bom version entity does not contain inventstyleid field i want to import it into bom version

    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.

  • amr abdelaziz Profile Picture
    95 on at
    RE: bom version entity does not contain inventstyleid field i want to import it into bom version

    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

  • WillWU Profile Picture
    22,352 on at
    RE: bom version entity does not contain inventstyleid field i want to import it into bom version

    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.

  • André Arnaud de Calavon Profile Picture
    292,884 Super User 2025 Season 1 on at
    RE: bom version entity does not contain inventstyleid field i want to import it into bom version

    Hi Amr,

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,754 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans