Getting startedUsing templates

Using templates

Copy page

85 verified templates for Shopify Flow, ERP integrations and schedules: browse, preview, grant and use, and save your own.

Templates are ready-made functions you start from instead of writing code from scratch. There are 85 verified templates by Code Creation Labs, 29 of them for ERP and warehouse integrations. Every template becomes your own function that you can change.

Open Templates in the app navigation. Each card shows:

  • the category (Inventory, Products, Orders, Fulfillment, Files, Storage, Customers, Discounts, Notifications, Utilities),
  • how it runs: ERP (called from your ERP or any system over the API), Scheduled, or the Shopify Flow trigger it is made for,
  • the permissions it needs, and whether you have them,
  • the secrets it reads, for example an ERP URL and key.
The Templates gallery with search, category, how it runs and source filters, and cards for the ERP stock templates
The gallery. Filter by category, by how a template runs and by source; every card shows what it needs before you use it.

Filter by how it runs to see only the templates for Shopify Flow, for your ERP, or for a schedule:

The Templates gallery filtered to templates that run from Shopify Flow
Templates made for Shopify Flow. Each shows the trigger to use, for example Order created or Any trigger.

Preview before you use

Preview opens the template with its description, the Flow trigger or schedule it is made for, the permissions and secrets it needs, the sample input, and the full code.

The preview of the Push new orders to your ERP template with its trigger, permissions, secrets, Flow input and code
A template preview: what it does, what it needs, the input for the Flow action, and the code.

Using a template

Select Use template - or Grant and use when it needs a permission you have not granted yet. Shopify's permission dialog comes first; the function is created only once the permission is granted, so it can run right away.

The new function opens in the editor with the template's sample input as test variables. Templates that write data have a dryRun switch in that sample, so the first test changes nothing. A template made for a schedule brings its suggested schedule, switched off until you turn it on.

Saving your own template

On a saved function, select Save as template and give it a name, description, category and the permissions it needs. Your templates are private to your store and appear in the gallery under the My templates source. Only the code is saved - never your secrets or data.

Next steps