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 :
Business Central forum

Assign Current Date To Date Field...

(0) ShareShare
ReportReport
Posted on by 795

Hi all,

1 Table (new).

2 Page (new).

i am creating a table in AL i have one filed data type of date, Now i want that when i publish the app i when i open the page the date field must be autofiled  with current date.

Categories:
  • Verified answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at

    yourfield := Today;

    or workdate;

  • Muhammad Arif Maseed Profile Picture
    795 on at

    where to assign this value on which trigger i already added onPageOpen and onOnAfterGetRecord but not working

  • Verified answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at

    use it in OnInsert trigger of table.

    I hope you need it when creating new record in that table?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans