Field extraction order
Note: If you’re familiar with Sensible, this advanced topic is for you.
Default field extraction order
Sensible adds each field to the output array sequentially after extracting it. By default you can specify fields, computed fields, and sections as sibling arrays, like this:
In this case, Sensible extracts by default in the following order:
- Run fields array.
- Run computed fields, which transform fields output:
- Run all computed fields that aren’t Suppress Output methods.
- Run Suppress Output fields.
- Run sections (“documents inside documents”). Sensible cordons off a document range and extracts fields or computed fields from it independently. Suited to complex repeating data.
- Return all fields, computed fields, and sections.
Configurable extraction order
You can use the following alternative syntax to change the order in which to extract fields:
This syntax alternative allows you to change execution order. For example, you can specify:
With the default execution order, the previous syntax would fail, because the computed fields would execute before the sections, so the first two sections would be suppressed from the output and the zipped computed field would return null. For an example of using this behavior, see Zip sections example.