ChangeParentStatusAction
What it does
Changes the status of a parent record, once all siblings are in a given state(status).
First setup
Set the variables
- myParentField
- parentStatusID
How to invoke
Add a status action that invokes this codeunit.
Options
If the setup is unconventional you can overwrite the parent reference, using a config named "parentEntity" and you can include records in "hidden" states by setting "excludeHiddenStatus" to "false".
Configuration
All configs for this codeunit support adding ".[StatusID]" add the end of the config name, to set a specific value, for that status. Otherwise the codeunit will fallback to the config without ".[StatusID]" at the end.
Developer info
- Type: CodeunitStatusaction
- Security: none
- Classpath: com.tsnocode.codeunit.common.ChangeParentStatusAction