📄️ Data Helpers
Fluent provides global helper functions for creating typed values in Record() data fields. These functions are available globally — no import needed.
📄️ Now.include
Now.include() populates a record field with the contents of a file at build time. It's the recommended way to manage scripts, HTML, and CSS in Fluent projects — keeping them as separate files with full IDE support (syntax highlighting, IntelliSense, linting) rather than embedding them as inline strings in .now.ts files.
📄️ Now.attach
Now.attach() attaches an image file to a record at build time. It reads the file, compresses it, and creates the corresponding sysattachment and sysattachment_doc records in the XML output.
📄️ Now.ref
Now.ref() creates a reference to a record in another table. Use it when a field needs to point to a record that isn't defined in the current file — for example, referencing a role, a flow, or any record identified by its sys_id or coalesce keys.
📄️ Keys File
Every Fluent project has an auto-generated keys.ts file that maps human-readable identifiers to ServiceNow sys_ids. It's the registry that makes Now.ID['my-record'] work.