Skip to main content
Business Central forum
Suggested answer

Is there a trigger for when a table is inserted from external integration tool?

editSubscribe (0) ShareShare
ReportReport
Posted on by 479

Title. Basically if data is being integrated or transferred as a row/record into a table, is there a trigger for when that new row is inserted into the table? My goal is to use logic that updates certain fields in that record when it is inserted into a table.

Categories:
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,984 Super User on at
    RE: Is there a trigger for when a table is inserted from external integration tool?

    Hi jdrco ,

    Yes we have see the following, if you you want to update some fields on standard tables you can use Events and Table Extension or if you are using new Custom table you can use below

       trigger OnInsert()

       begin

       end;

       trigger OnModify()

       begin

       end;

       trigger OnDelete()

       begin

       end;

       trigger OnRename()

       begin

       end;

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User on at
    RE: Is there a trigger for when a table is inserted from external integration tool?

    Hi, External tools can access APIs or Web Services, which are basically pages. You can consider using Page's trigger.

    Info from AJ, hope this helps. 

    https://www.youtube.com/watch?v=5iRv0y0rVzw&t=31s

    pastedimage1657154498017v1.png

    pastedimage1657154533672v2.png

    pastedimage1657154542767v3.png

    pastedimage1657154552208v4.png

    pastedimage1657154563450v5.png

    Thanks.

    ZHU

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans