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, ...
Unanswered

Postload() method

(0) ShareShare
ReportReport
Posted on by 5

Hi,

need solution

I need to run a function called Delete_From TheTableName inside the postload() method in data entites while exporting the data.

only once during the entire export activity.

Here's my code

public void postLoad()
    {

         {

     Delete_From TableName // this function should call only once during entire export activity

         }

      *code// condition for my export  activity

    }

Thanks inAdvance.

 

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Goutham,

    Even I am looking for solution for the same issue.

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

    This sounds like a strange design. What is the business requirement that you're trying to implement by this code?

    By the way, please always use Insert > Code is paste source code. The result will be eaiser to read and work with:

    public void postLoad()
    {
    	delete_from tableName // this function should call only once during entire export activity
    		*code// condition for my export  activity
    }

  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi Goutham,

    The postload() method is called per row. So, this would not be the correct method. Like Martin, I'm curious what you want to achieve. What exact data and under which conditions should be deleted during an export and for what reason?

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    Can you explain your requirement ? PostLoad runs for each record, so if your task is to run only once, it would not help .

  • Deepak Agarwal Profile Picture
    8,602 on at

    Hello,

    If you want to export new records only than use incremental export than deleting the table data. Additionally you can also explore PostGetStagingData method on data entity.

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
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans