咨询MS Graph Excel筛选条件中filterOn与dynamicCriteria的合法取值
Microsoft Graph Excel筛选接口Filter:apply中filterOn和dynamicCriteria的合法取值
filterOn属性合法取值
filterOn用于指定筛选的依据类型,合法取值如下:
value:基于单元格具体值筛选cellColor:基于单元格填充颜色筛选fontColor:基于单元格字体颜色筛选icon:基于单元格内的条件格式图标筛选dynamic:使用动态条件筛选(需配合dynamicCriteria属性)
dynamicCriteria属性合法取值
当filterOn设为dynamic时,dynamicCriteria用于指定具体动态筛选规则,合法取值包括:
- 数值类:
aboveAverage(高于平均值)、belowAverage(低于平均值) - 日期类:
- 单日:
today(今天)、tomorrow(明天)、yesterday(昨天) - 周度:
thisWeek(本周)、nextWeek(下周)、lastWeek(上周) - 月度:
thisMonth(本月)、nextMonth(下月)、lastMonth(上月) - 季度:
thisQuarter(本季度)、nextQuarter(下季度)、lastQuarter(上季度) - 年度:
thisYear(今年)、nextYear(明年)、lastYear(去年)、yearToDate(年初至今) - 固定周期范围:
allDatesInPeriodQuarter1至allDatesInPeriodQuarter4、allDatesInPeriodJanuary至allDatesInPeriodDecember、allDatesInPeriodYear(全年所有日期)
- 单日:
动态筛选请求示例
POST https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/tables/{id|name}/columns/{id|name}/filter/apply Content-type: application/json
{ "criteria": { "filterOn": "dynamic", "dynamicCriteria": "today" } }
内容的提问来源于stack exchange,提问作者Rex Sheridan
相关产品推荐
相关产品推荐

