# While Importing excel file using Sysoperation Framework, the table method should trigger in X++

**URL:** <https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641>\
**Category:** Finance and Operations/AX\
**Tags:** live, d365fo\
**Created:** [December 6, 2023, 6:59am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641 "2023-12-06T06:59:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Musty7](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Musty7](https://www.dynamicsuser.net/u/Musty7)\
**Post date:** [December 6, 2023, 6:59am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641/1 "2023-12-06T06:59:55Z")

</div>

I’ve imported excel and data has been pushed successfully in my custom table, but i’ve written table method that is modified field(), while importing it is not triggering!

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [December 6, 2023, 7:05am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641/2 "2023-12-06T07:05:46Z")

</div>

You need to call the method if you want it to execute.

Forms call modifiedField() automatically, but if you write your own code, it’s up to you.

---

<div class="post-metadata">

**Author:** ![Musty7](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Musty7](https://www.dynamicsuser.net/u/Musty7)\
**Post date:** [December 6, 2023, 10:10am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641/3 "2023-12-06T10:10:55Z")

</div>

I’m not sure if the modified field should be activated while importing the field!, but because the data is already there in Excel, how will the modified field trigger? Instead, modified field () can we use an alternate way such that it triggers automatically while importing? without user interaction

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [December 6, 2023, 10:17am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641/4 "2023-12-06T10:17:03Z")

</div>

As I said, the only way how to get modifiedField() executed is calling it.

Of course, you could place the same code somewhere else. What is the best place depends on what the logic should do.

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [December 6, 2023, 10:21am UTC](https://www.dynamicsuser.net/t/while-importing-excel-file-using-sysoperation-framework-the-table-method-should-trigger-in-x/79641/5 "2023-12-06T10:21:05Z")

</div>

The thread [Importing data from Excel through X++](https://www.dynamicsuser.net/t/importing-data-from-excel-through-x/79620) seems to be about the same thing. It was created by another user, but from your company. Please read the discussion and check the verified answer there.
