Skip to main content
Tasks are executed after the job is triggered and are the main building blocks of a job. You can string together as many tasks as you want.

All tasks

getCustomerById

Gets a customer using their id. Official Plain Docs
example.ts

upsertCustomer

Creates or updates a customer. Official Plain Docs
example.ts

upsertCustomTimelineEntry

Creates or updates a timeline entry. Official Plain Docs
example.ts

Using the underlying client

You can also use the underlying client to do anything @team-plain/typescript-sdk supports by using runTask:
example.ts

Example usage

In this example we’ll create a task that updates or creates customer information based on an identifier.
example.ts