Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Adding am extension to my Return Order Line V2 entity

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I need to add a new field to my extension on the ReturnOrderLine entity.

I need to add the serial number. The problem is that I need to create a connection between salesline and InventTrans and then one between InventTrans and InventDim.

I am not sure how to create the joints between the tables so I will get the serial numbers on ReturnOrderLine 

thanks

astrid

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Adding am extension to my Return Order Line V2 entity

    Hi AstridMalanka,

    ReturnOrderLine entity already contains InventDim data source. You just need

    1. Drop serial number field from InventDim data source to "Fields" node

    2. Add the field with the same name to ReturnOrderLineStaging table with EDT InventSerialId.

    3. Build and sync project

  • AstridMalanka Profile Picture
    AstridMalanka 8 on at
    RE: Adding am extension to my Return Order Line V2 entity

    I am pretty new to this, so your suggestion is to add a new computed field and use that sql code on the field? i am not sure what you mean by use inventDim directly.

    thanks

  • AstridMalanka Profile Picture
    AstridMalanka 8 on at
    RE: Adding am extension to my Return Order Line V2 entity

    Thanks

  • HenryXie Profile Picture
    HenryXie on at
    RE: Adding am extension to my Return Order Line V2 entity

    Hi Astrid,

    you can use inventDim directly, the relation as below:

    select top 10 d.INVENTSERIALID
    from SalesLine as sl
    inner join InventDim as d
    on sl.INVENTDIMID = d.INVENTDIMID
    where isnull(d.INVENTSERIALID,'') != ''

    or you can add a virtual field on entity. ref below doc:

    https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/data-entity-computed-columns-virtual-fields

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,735 Super User 2024 Season 2 on at
    RE: Adding am extension to my Return Order Line V2 entity

    Hi Astrid,

    You don't need the InventTrans. There is also a field InventDimId on the SalesLine table.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans