Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

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

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
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 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
    amr abdelaziz 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
    WillWU 22,350 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
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans