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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data Entity - Where the business logics should reside

(0) ShareShare
ReportReport
Posted on by

Hi When creating data entity, I am wondering where the business logic such as the following should be coded:

(1) Validation before the create/update/delete

(2) Populate some field dynamically based on the value of another field?

Should these business logic be coded at Entity or Table?  What are Pros and Cons?

Thank you very much in advance!

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Code that should be executed for all sources (UI, x++, data migration, integration) should be done on a table level, if it is only UI then form level, if only data migration\integration - data entity.

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    In addition you can also take a look at below  docs link to now more about how to write validations table vs entity , where to default values etc.

    docs.microsoft.com/.../validations-defaults-unmapped-fields

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans