validate_rule_fields
Validate business rule fields by confirming entities, fields, and picklist values exist in SAP SuccessFactors metadata, and check field types and editability.
Instructions
Validate that fields, entities, and picklist values referenced in a proposed business rule actually exist in the SAP SuccessFactors instance.
For each field:
Verifies the entity exists in $metadata
Verifies the field exists on that entity
Checks the field type (string, date, picklist, number)
If picklist values are provided, verifies they exist
Checks if the field is editable (creatable or updatable)
Example fields_to_validate: [ {"field": "payGroup", "entity": "EmpJob", "values": ["PG_PE_FT", "PG_PE_PT"]}, {"field": "employeeClass", "entity": "EmpJob", "values": ["FT", "PT"]}, {"field": "countryOfCompany", "entity": "EmpJob"} ]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_object | No | ||
| data_center | No | ||
| auth_user_id | No | ||
| auth_password | No | ||
| fields_to_validate | Yes | List of fields to validate. Each dict: {'field': str, 'entity': str, 'values': [optional list of picklist values]} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||