How to do it...

First, we will create the settings table for the fields that we want to allow defaults for. To do so, follow these steps:

  1. Create a new table named ConWHSVehicleTableDefaults.
This particular sample will be fixed to the vehicle table, but you should be able to extend this to work with any table you desire.
  1. Locate the Extended data types (EDT) RefFieldName, and RefFieldLabel in the Application Explorer and drag them to the Fields node of the table. Make the RefFieldLabel field read-only.
  2. Drag the EDT String255 to the Fields node and rename the field to DefaultValueStr. Create a label for Default value, and set the Label property to it.

The pattern for this type of table would normally continue by adding a field for each ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.