Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

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

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 21,023 Moderator 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 69,639 Super User 2024 Season 2 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

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans