getSheets: (state) { return state.sheets; } code example Example: get active sheet google script SpreadsheetApp.getActiveSheet()