Positional file tool - Build flat file action

Use the Build flat file action to generate a fixed-width flat file from an array of rows. This action returns the flat file content as a single text blob, which you can store with the Create file in Workato FileStorage action.

Input

Input fieldDescription
Rows to outputProvide an array of row objects as a JSON string. For example, [{"field1": "value1"}, {"field1": "value2"}].
Column layoutDefine the column layout for the flat file. Click ... (ellipses) to choose between a Fixed list or Dynamic list. Use a Fixed list when the column items and content are known. Use a Dynamic list when the column items and content depend on another list.
Column layout source list (Column layout)Input a list datapill that contains the column layout. Available for column layouts configured with a Dynamic list.
Field name (Column layout)Enter a name for this field.
Start position (Column layout)Provide the 0-based start position for the field.
Length (Column layout)Enter the number of characters allocated to the field.
Padding characterProvide a padding character. This defaults to space.
Pad directionSpecify whether to pad values on the right or left. The default pad direction is right.

Output

Output fieldDescription
Flat file contentThe content of the generated flat file.

Last updated: