Brayden, you can do this by override field metadata on the model and giving your fields new labels. I use this code to get at the field labels, but I’m not sure it’s necessary any more, they’ve fixed some things in the export code.
var $ = skuid.$;<br>var today = new Date();<br>var model = skuid.model.getModel('YourModelName'); <br>var fields = [ //use the api names of your fields here<br> 'Index',<br> 'Id',<br> 'Name', <br> 'CustomField__c' <br>]; <br>var fieldsWithCorrectLabels = $.map(fields, function(v){<br> var actualField = model.getField(v);<br> console.log(actualField.id);<br> <br> return {<br> id: actualField.id,<br> name: actualField.name,<br> label: actualField.label<br> }; <br>}); <br>model.exportData({<br> fileName: 'Custom Export File Name '+today,<br> fields: fieldsWithCorrectLabels,<br> doNotAppendRowIdColumn: true,<br> useAPINamesForHeaders: false<br> });
H/T to skuid support for unofficially helping with this
Note: “Index” is a UI-Only field I made with the formula {{index}}, which gives you the row number in a column.