Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Additional syntax examples

Export allows to set default output settings - output filename, file type, file format and header format.

Code Block
languagejs
titleExport with output object
collapsetrue
{
    "name": "transaction_ids_export",
    "type": "export",
    "title": "List of Transaction IDs",
    "description": "Returns transactions ID, postcodes, lower super output areas, middle super output areas and value of indicators available in the view into a file.",
    "content": {
        "properties": [
            "codepoint_plg.msoa11nm",
            "codepoint_plg.lsoa11nm",
            "codepoint_plg.postcode",
            "baskets.basket_id"
        ],
        "output": {
            "type": "file",
            "format": "xlsx",
            "filename": "Transaction IDs.csv"
            "header": "basic"
        }
    }
}

...