Can you use exportData() in a snippet and export data from a table without the column headers?

Jeff,

Jack Sanford posted an export snippet here-> https://community.skuid.com/t/export-to-excel-without-a-table?topic-reply-list%5Bsettings…

I modified his script and ‘left out’ the field labels. Here is a sample page based on Tasks.

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" useviewportmeta="true" showsidebar="true" showheader="true" tabtooverride="Task">
    <models>
        <model id="Task" limit="100" query="true" createrowifnonefound="false" datasourcetype="salesforce" datasource="salesforce" sobject="Task">
            <fields>
                <field id="Subject"/>
                <field id="CreatedDate"/>
            </fields>
            <conditions/>
            <actions/>
        </model>
    </models>
    <components>
        <pagetitle model="Task" uniqueid="sk-3KScRx-83">
            <maintitle>
                <template>{{Model.labelPlural}}</template>
            </maintitle>
            <subtitle>
                <template>Home</template>
            </subtitle>
            <actions>
                <action type="multi" label="Export Tasks" uniqueid="sk-3KSfkM-126">
                    <actions>
                        <action type="custom" snippet="exportSnippet"/>
                    </actions>
                </action>
                <action type="savecancel" uniqueid="sk-3KScRv-82"/>
            </actions>
        </pagetitle>
    </components>
    <resources>
        <labels/>
        <css/>
        <javascript>
            <jsitem location="inlinesnippet" name="exportSnippet" cachelocation="false">var $ = skuid.$;
                
                var today = new Date();
                var model = skuid.model.getModel('Task');
                
                var fields = [
                //use the api names of your fields here
                    'Subject',
                    'CreatedDate'    
                ];
                
                var fieldsWithCorrectLabels = $.map(fields, function(v){
                    var actualField = model.getField(v);
                     console.log(actualField.id);
                     
                     return {
                        id: actualField.id,
                        name: actualField.name
                    };    
                });
                
                model.exportData({
                    fileName: 'Custom Export File Name '+today+'.csv',
                    fields: fieldsWithCorrectLabels,
                    doNotAppendRowIdColumn: true
                    });</jsitem>
            </javascript>
        </resources>
        <styles>
            <styleitem type="background" bgtype="none"/>
        </styles>
    </skuidpage>

Thanks,

Bill