Do you know how to freeze a column using FrozenColumnCount property (or another), inside a pivot table ?
request_body ={
"requests" : {
"updateCells" : {
"rows" : {
"values" : [
{
"pivotTable" : {
#Data Source
"source" : {
"sheetId": "0",
"startRowIndex" : 0,
"startColumnIndex" : 0,
},
#Row Field(s)
"rows" : [
#field 2
{
"sourceColumnOffset" : 5, #Type Preneur
"showTotals" : False,
"sortOrder" : "ASCENDING"
},
],
#Columns Field(s)
"columns" : [
#Field 2
{
"sourceColumnOffset" : 18, #Année
"sortOrder" : "ASCENDING",
"showTotals" : True
}
],
"criteria" : {
6:{
'visibleValues' : ['Solde Créditeur']
},
},
"filterSpecs": [
{
"filterCriteria": {
'visibleValues' : ['Solde Créditeur']
},
"columnOffsetIndex": 6
}
],
#Values Field(s)
"values" : [
{
"sourceColumnOffset" : 21, #PNS BRUT PPSO
"summarizeFunction" : "SUM",
"name" : ""
}
],
"valueLayout" : "HORIZONTAL"
}
}
]
},
"start": {
"sheetId" : id_new_sheet,
"rowIndex" : 0,
"columnIndex" : 0
},
'fields' : 'pivotTable'
}
},
"properties": {
"gridProperpties" : {
"frozenColumnCount": 1,
}
}
}
The pivot table works. I would like to freeze the first column. Here the error message I get : Invalid JSON payload received. Unknown name "properties": Cannot find field.". Details: "[{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'description': 'Invalid JSON payload received. Unknown name "properties": Cannot find field.'}]}]">.