validate_document_input
Validates document input by checking the target row exists and that category, approvalBy, and stage values are in their respective picklists. Returns validation errors or success.
Instructions
Validate Document input before creation (proactive check).
Checks:
- Target entity (SheetName + RowName) exists
- Category exists in PickList.DocumentType
- ApprovalBy exists in PickList.ApprovalBy
- Stage exists in PickList.StageType
Returns validation result with errors or success message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | ||
| category | No | ||
| row_name | Yes | ||
| excel_path | Yes | ||
| sheet_name | Yes | ||
| approval_by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||