Create Custom Object Validations
- Define condition rules for custom object validations.
- Security:Custom Object Managementdomain in the System functional area.
You can create or edit custom validations for custom fields to ensure that your data is
valid.
Workday Web Services don't enforce custom validations on custom object data that you
upload using:
- Workday-delivered integrations.
- Workday Studio.
- Access theConfigure Custom Object Validationstask.
- Select an active or draftCustom Objectfrom theCustom Objectprompt.
- As you complete the task, consider:
Option Description MessageEnter text that displays when workers enter invalid data.RuleSelect a condition rule to validate the data.When you create custom object validation rules on an effective-dated business object, you can only directly reference fields on an extended Workday object when the business process:- Uses that Workday object.
- Won’t change that Workday object.
When you need a custom object validation to reference a field on the extended Workday object, determine if the field is available on the Workday object that the business process uses. When it's not available, create a calculated field on that business process object. Use theLookup Related Valuecalculated field on theCreate Calculated Fieldtask to display that field on the business process object. You can then use this calculated field in the custom object validation rule.Workday determines the current value of the calculated field when it runs the validation rule. The value isn't part of the business process.Evaluate only on 'OK'Select to evaluate the custom validation when you submit the task rather than when you move out of the custom field.
When workers create or update custom object additional data, Workday evaluates the
custom validation rules to:
- Alert transaction approvers to conditions that need more careful review.
- Display warning or error messages when workers create a transaction that doesn't meet the conditions for the validation.
- Prevent workers from submitting invalid transactions until they resolve an error.