Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

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

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 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 75,802 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans