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 :
Microsoft Dynamics CRM (Archived)

Auto populate date field with Current date

(0) ShareShare
ReportReport
Posted on by

Is there a way to get a date field to autopopulate with the current date without having to use code?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Karth Profile Picture
    on at

    If you are using CRM 2013, you can configure a Real Time workflow to populate the Date Field with the current date.

    You can configure your workflow to run upon creation of the record and use the workflow step to update the record with a value for the date field. Assign the Process {Execution Time } or the 'Created On' value to this field.

  • mcw1882 Profile Picture
    on at

    And for records that have already created, the same process? Or is there a way where I can create the workflow to run on all the records for that particular entity i.e, all customer records?

  • Suggested answer
    Karth Profile Picture
    on at

    For the records already created, you can follow the same approach, but using the on-demand workflows. You can then select the records through Advanced Find, and run the on-demand workflow.

  • Patrick Grootaarts Profile Picture
    560 on at

    Hi Karth, this is something that runs in the background am I right? What do I need to do if I want to have the date predefined on the form. So a default value (data of today) and I can adjust it later and then save the form?

  • Suggested answer
    Patrick Grootaarts Profile Picture
    560 on at

    Allready found the solution by a small script:

    function updateDateField(startdate) {

    var currentDateTime = new Date();

    Xrm.Page.getAttribute(startdate).setValue(currentDateTime);

    }

  • iruser2 Profile Picture
    2,048 on at

    does real time work flow on creation of..... mean I have to click save?

    I would love to have a date field that autopopulates as today as the form opens.  Not as the form saves.

    thanks!

  • Community Member Profile Picture
    on at

    i want a field to show date 10th day of month. Suppose it is April then it should show 10 April 2018 or 10/04/2018 like this every month the date of that particular field will change the month but date will remain 10th, how to do using javascript on CRM form. Can you please help???

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Sucharita.

    Are you using custom field of date and time type?

    Thanks

  • Community Member Profile Picture
    on at

    Hi Ridhima,

    The form is Main form type, if that is what you asked was, am new to CRM....sorry may be I am sounding funny :(

  • Suggested answer
    Community Member Profile Picture
    on at

    I am asking about attribute in which you want to show date

    (like this every month the date of that particular field will change the month but date will remain 10th).

    Is this field created by you?

    Thanks

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans