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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

How to execute a custom X++ method directly after a customer is created or updated in Dynamics 365

(0) ShareShare
ReportReport
Posted on by 137

Question:

I need help with X++ in Dynamics 365 Finance and Operations. I want to execute custom code after a customer record is successfully saved, whether it is a new customer creation or an update to an existing customer.

For example, I have a custom method called RunTest() and I want it to be triggered automatically when the user enters customer information and clicks Save, but only after the record has been successfully written to the database.

 

I need the correct code, and I would appreciate it if you could provide me with an example. Thank you all.

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,070

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 238 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans