Custom Validation
Write your own validation code, making it possible to perform complex checks, such as validating data against external databases or APIs.
exports.code = async (params) => {
let errorRecords = [];
// Your custom validation logic here
return errorRecords;
}Parameters provided to the `code` Function
{
uploadId: string;
extra: string | number | json;
fileName: string;
data: [
{
index: number;
record: {
[key: string]: string | number;
};
errors: {};
isValid: boolean;
}
];
totalRecords: number;
chunkSize: number;
}Returned Error Records
Example, Validating data against database data
Features
Access to variables inside code editor
Performing HTTP calls
Validation execution in chunks
Combining with static validation
Scalable Architecture
Last updated
Was this helpful?