web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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)
  • André Arnaud de Calavon Profile Picture
    301,171 Super User 2025 Season 2 on at

    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

  • Martin Gumbs Profile Picture
    10 on at

    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
    301,171 Super User 2025 Season 2 on at

    Hi Martin.

    Thanks. You can check the documentation I provided above.

  • Martin Gumbs Profile Picture
    10 on at

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

  • Martin Dráb Profile Picture
    237,980 Most Valuable Professional on at

    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.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    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/.../

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar 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... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans