java 阈值 告警_工作流程查找列表视图阈值提醒我

更好的解决方案是解析文档库,使其不超过列表视图阈值 . 假设您在帖子中标记了它之后运行了2013,您可以让工作流对目标库执行REST API调用并检查项目计数 . 如果返回> 5000,则提醒文档库管理器存档一些旧文件 - 或使用If / Then块将文件保存到备用库 .

SPD工作流程执行此操作:

Build {...} Dictionary (Output to Variable: requestHeaders)

then Call [site url]/_api/web/Lists/GetByTitle('[Library Name to Query]') HTTP web service with request (ResponseContent to Variable: responseContent|ResponseHeaders to Variable: responseHeaders|ResponseStatusCode to Variable: responseCode)

then Get d/ItemCount from Variable: responseContent (Output to Variable: count)

If Variable: count is less than 5000

[Proceed as normal]

If Variable: count is greater than or equal to 5000

[Save to secondary library and notify admin to do some cleanup]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值