Custom Functions
Overview
Custom functions enable metadata-driven field initialization and transformation without writing application code. They are defined in TB_VAR metadata and executed automatically by CoreWrite during INSERT and UPDATE operations.
Available Functions:
uuid- Generate UUID v4md5- Generate MD5 hashcounter- Sequential formatted identifiersslugify- URL-safe slugs from textsequence- Auto-increment valuestimestamp- Current timestampconcat- Concatenate field valuesdefault- Default value if empty
Benefits:
- ✅ No application code required
- ✅ Consistent behavior across all clients
- ✅ Metadata-driven configuration
- ✅ Automatic execution by CoreWrite
- ✅ Business logic centralization