Creating your first JavaScript function
In this first recipe, we will set up our environment and write a simple JavaScript method that automates generation of a date field with today's date when another field is populated, using the custom Graduation Details entity created in the previous chapter. Ensure the entity has a form with the Supervisor
and the Post Graduate Start Date
attributes to apply our customization on it. Even though we are using the entity from the first chapter, the customization can be applied to any lookup and date field of your choice.
Getting ready
In addition to the usual access to Dynamics 365, the correct security role (System Customizer
or higher), and a solution to contain your customization, it is highly recommended that developers use a mature integrated development environments (IDE) to develop JavaScript. You can opt to use the out-of-the-box limited Dynamics 365 web resource editor; however, using an IDE such as Visual Studio (2015. or even the free equivalent...