AssemblingErrors object. The first script requires different documents depending on a loan sum. The second checks that a set contains the expected identification documents.
Require documents based on the loan sum
This script assembles documents into document sets defined by a Document Set Definition. The Document Set Definition contains a section named Borrower’s form and references to the following Document Definitions:- Passport
- Guarantor’s documents
- Co-borrower’s documents
- Employer reference
- Co-borrower’s name
- Loan sum
If the Co-borrower’s name field contains a value, the document set must also contain a co-borrower’s documents.
The following script uses this logic to assemble document sets:
Check for missing or duplicate documents
This script works with the Identification Documents Document Set Definition, which references the following Document Definitions:- Passport
- Driver’s license
