palantir-foundryfoundry-slate

How do I customize the header and title of an Excel sheet generated by a Foundry Slate export button?


I'm using an Export button to create an Excel spreadsheet with the results of a Foundry Slate query, but I'd like the name of the resulting file to be something other than "q_myQuery.xlsx".

How can I customize the filename and column headers of the resulting file?


Solution

  • Within the event which is triggering the export add

    return {fileName: "yourFileName"}
    

    The column names have to be set within the function or query which you are trying to export. For reference check the official documentation.