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

Copy executionId to Target Table

(0) ShareShare
ReportReport
Posted on by 10

I have created a custom entity for a new Table. I need to copy the value of the execution Id from staging table to target table. Please guide the best way to achieve this. 

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Copy executionId to Target Table

    Hi Martin,

    1. >> I need to track the data inserted during each import (Similar to the staging table) and perform some action (Invoicing Sales order)only for that set of data.  I guess execution Id is most appropriate.

    Another option could be to add the checkbox "Invoice posted" and fill it in after sales invoicing. In this case, you will know what data was posted and what data is not posted.

    2. One more option is to use postTargetProcess method, where you add post logic

    ievgensaxblog.wordpress.com/.../

  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: Copy executionId to Target Table

    You already have the data in the staging table (in cases when staging tables are used, of course, e.g. not when using OData or X++). Can't you simply read it from there?

    Copying such data to the actual tables looks like a bad data model to me.

  • Martin Gumbs Profile Picture
    10 on at
    RE: Copy executionId to Target Table

    I am unable to get the value of the execution ID in any of DataEntity methods.

  • André Arnaud de Calavon Profile Picture
    298,087 Super User 2025 Season 2 on at
    RE: Copy executionId to Target Table

    Hi Martin.

    Thanks. You can check the documentation I provided above.

  • Martin Gumbs Profile Picture
    10 on at
    RE: Copy executionId to Target Table

    Hi André ,

    I need to track the data inserted during each import (Similar to the staging table) and perform some action (Invoicing Sales order)only for that set of data.  I guess execution Id is most approriate.

  • André Arnaud de Calavon Profile Picture
    298,087 Super User 2025 Season 2 on at
    RE: Copy executionId to Target Table

    Hi Martin,

    I have not heard of this requirement before. Just curious, for what reason do you need to have this?

    You can try to create a computed column or virtual field for this. You have to be aware of a performance penalty when you are using virtual fields. See also the documentation: Computed columns and virtual fields in data entities - Finance & Operations | Dynamics 365 | Microsoft Docs

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias 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... 846 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 838

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 818 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans