# Set Date On Status

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

Sets one or more fields to today's date when the codeunit is run.

## <span class="mw-headline" id="bkmrk-first-setup-1">First setup</span>

Create a Configuration on the entity named "SetDateOnStatus.\[StatusID\]", which contains the system name(s) of the field(s) to be corrected.  
If multiple fields, separate with spaces.

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

<span class="mw-headline">Add the codeunit to a status action.</span>

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<span class="mw-headline">\[All possible configurations and where to edit them\]</span>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitStatusaction](https://docs.tsnocode.com/books/codeunit-reference/chapter/statusaction)</span>
- <span class="mw-headline">Security: access to the record</span>
- <span class="mw-headline">Classpath: com.tsnocode.codeunit.common.SetDateOnStatus</span>