All posts
· Engineering
Writing your first code step in TypeScript
TBTom BeckerEngineering
Some logic is easier to write than to draw. Parsing an odd CSV, calling an internal API, or scoring leads with your own formula all fit better in a few lines of code.
A step is a function
A code step exports a function that receives the previous step's output and returns its own. Types for every connected app come from the SDK, so your editor knows the shape of a HubSpot contact or a Stripe invoice.
Deploy from the CLI
Code steps live in Git next to the rest of your code. Running forgeline deploy publishes a new version, and the run log shows which version handled each run.
If a deploy goes wrong, roll back from the workflow's history. The previous version is one click away.