Generate delimited strings from variable fields every 5 minutes

Recipe ToolsMarketing

What it does

When a scheduled trigger fires every 5 minutes, this automation creates four variable fields and joins them into a delimited string. Empty fields are omitted so the output contains only populated values.

Who it's for

Engineering teams who need to construct formatted data strings from optional fields on a recurring schedule.

How teams use this

Build a CSV row from sparse data

Create a delimited string every 5 minutes from fields that may or may not be filled, then export it as a CSV row. Only non-empty fields appear in the output.

Format a log entry with optional fields

Generate a delimited log string on schedule from four variable fields, excluding any that are blank. The string is ready to send to a logging system.

Add a fifth field to the string

Extend the automation to include a fifth variable field in the delimited output, applying the same logic to skip empty values. Only the variable creation and join step need to change.

How it works

  1. Run every 5 minutes. The automation starts on a schedule, running every 5 minutes so the string is refreshed at regular intervals.
  2. Create four variable fields. Set up field1, field2, field3, and field4 as variables in the Clock step. Each field may or may not have a value depending on the data available.
  3. Join fields and remove blanks. Combine the four fields into a single delimited string, skipping any field that is empty so the output contains only populated values.