ReadonlyaiAI services. Use B.ai.call(...) to invoke an AI model from a script. Routes through the tenant Bluestep API key and the web-global usage gate by default.
ReadonlycryptoHashing, MAC, signature, key and JWT (jwts) helpers.
ReadonlydbDatabase access: named SQL queries (executeQuery), lookups, transactions and locks, plus the Propagation, SortDirection and FieldDataType enums.
ReadonlyexportsData stored in this object will persist between formulas on the same thread.
Will be cleared when the thread is finished or when [[B.clearExports]] is called.
Guest language objects will automactically be converted to host objects.
Example B.exports.key = value. To read the value use const value = B.exports.key.
ReadonlyfdbFDB (First Databank) drug data services.
ReadonlyfinanceProvides access to financial services and operations within the Bluestep platform.
ReadonlyfindUsed to find and give types to various objects given their string representation of their id.
ReadonlygitGit repositories as a script surface. B.git.repo.open(spec) mounts a repository that exists; B.git.repo.from(source) constructs one from live content. The same handle can be mounted on an AI agent so a model can read it.
ReadonlyglobalGlobal string to use with formatters.
ReadonlyhtmlHTML generation utilities.
ReadonlyioStream, file-URL, zip and data-source helpers for reading and writing content.
ReadonlymailBuilds and sends email, and opens SMTP or IMAP connections.
ReadonlymesaLegacy MeSA drug objects.
ReadonlynetThe [[Net]].
ReadonlyoptAn Optional [[User]]. The Optional will be empty if no one is logged in.
ReadonlyoptAn Optional User [[Relate.Entry]]. The Optional will be empty if no one is logged in or is a super. Same as B.optUser.flatMap(user => user.optRecordTypeEntry())
ReadonlyorgThe [[Organization]].
ReadonlyqueriesQueries
ReadonlyrelateAdministrative operations for Relate forms and fields. Use B.relate.createField() and B.relate.updateField().
ReadonlyreportsReports
ReadonlysoapCreates SOAP web-service clients and interceptors (Apache CXF).
ReadonlytextString and text utilities: formatting, diffing, HTML/XSS escaping, hashing and SASS compilation.
ReadonlytimeThe [[Time]].
ReadonlyuserAn [[User]]. The [[User]] will be null if no one is logged in. Same as calling B.optUser.orElse(null)
ReadonlyuserA [[Relate.Entry]]. The [[Relate.Entry]] will be null if no one is logged in or is a super. Same as calling B.optUserRecordTypeEntry.orElse(null)
ReadonlyutilThe [[Util]].
Resets the B.exports for the next formula on the same thread.
The record this script is running against.
The forms that a record matching this script's record-type and category requirements can have.
TODO
Example