不断收到此错误,正确的语法是什么 fornConditionType 'NUMBER_BETWEEN' 正好需要两个条件值,但提供了 1 个值



我试图使用条件过滤器来检查使用google sheets api的两个数字之间的范围,我一直得到这个语法错误,我如何修复它请这里是我的代码:

const addFilterViewRequest = [
{
'addFilterView' : {
filter : {
title : 'PO_Log Precentage',
range : {
sheetId : 1701531392,
'startRowIndex': 1,
'startColumnIndex':1

},
'criteria': {
19:{
'condition': {
'type': 'NUMBER_BETWEEN',
'values':[
{

"userEnteredValue" : "80"


}
],

}


}

}
}
}
}
]


Sheets.Spreadsheets.batchUpdate({ requests: addFilterViewRequest },spreadsheet_id);
}

ConditionType

NUMBER_BETWEEN

单元格的值必须在两个条件值之间。支持数据验证、条件格式和过滤器。只需要两个ConditionValues

'values':[
{                     
"userEnteredValue" : "0"
},
{                     
"userEnteredValue" : "80"
}
],

最新更新