Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Custom tables best practices

Posted on by 100

I've noticed that all the standard tables in Solomon contain the following six fields that help with tracking who's modified tables:

Crtd_DateTime, Crtd_Program, Crtd_User - List the user, program and date-time the row was first created;

LUpd_DateTime, LUpd_Program, LUpd_User - List the user, program and date-time that the row was last modified.

Are these fields something I should be implementing in new tables that I add to the system?

If so, am I correct in assuming that I would be writing my own UpdateEvent code.  Any best practices I should be aware of?

 

*This post is locked for comments

  • Verified answer
    Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: Custom tables best practices

    Mary

    It is not compulsory to have those fields, but it can be useful, and I think it should usually br done.

    Yes you do need to write your own code to populate those fields.

    For grids, this will probably be in the LineChk event.

    Otherwise the Update event.

    In both cases, you need to check whether this is an Insert or an Update, then update the LUpd fields and/or the Crtd fields as appropriate .

    Barry

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans