web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

EventSubscriber for new item creation

(0) ShareShare
ReportReport
Posted on by 25

I am trying to detect when a new item is created in Business Central Cloud v21.

I looked at OnAfterOnInsert in the item table but that triggers when the new item card is originally shown and given a generic ITEM*** number.

What I am looking for is the trigger after that initial item card is completed.

I have the same question (0)
  • Suggested answer
    Sabina Sasu Profile Picture
    19 on at
    [quote user="bignadad"]What I am looking for is the trigger after that initial item card is completed.[/quote]

    If I understand correctly, you want to detect when the user completes filling in the item information. There is no trigger that detects this, however you could use the OnClosePage trigger on the Item card as a workaround.  Note that this trigger only works if users close the page using the back arrow, and not if they navigate to the previous or next item cards.

    Since the trigger runs every time a user closes the page, you can also create a new Boolean field like IsInformationCompleted on the Item table that toggles to true the first time the OnClosePage trigger runs to detect if this is the first time the item is created.

    Hope this helps!

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hello

    recod insertion happens cmq when the primary key is inserted
    from the page can be delayed with the DeleayInsert property to TRUE

    community.dynamics.com/.../what-is-delayed-insert-and-how-it-works

    DAniele

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 566 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 347 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans