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

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

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,233 Super User 2025 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.

  • HenryXie Profile Picture
    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

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

    Thanks

  • AstridMalanka Profile Picture
    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

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade 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... 650 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 582 Most Valuable Professional

#3
CU05031448-0 Profile Picture

CU05031448-0 526

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans