Sharepoint Online中的文件自动删除

huangapple go评论53阅读模式
英文:

Auto Removal of files in Sharepoint Online

问题

在我的SharePoint Online网站中,文档库中有多个文件夹、子文件夹和不同类型的文件。

问题是,我需要以某种方式删除每个文件夹或子文件夹下在2022年之前创建的所有文件(仅限文件)。

这不应影响当前的文件夹结构。
是否有可能做到这一点?我发现使用SharePoint中的Power Automate可以解决这个问题,但我不是这个领域的专家。

有人可以帮帮我吗?

英文:

I have a SharePoint Online Site. In its Document I've multiple folders , sub folders and files of different types.

The thing is that I need to somehow delete all the files(only) under each and every folders or subfolders which are Created on or before year 2022.

It should not affect the present folder structures.
So is there any possible way to do it ? I found something like, using Power Automate in Sharepoint will solve this problem, but I'm not an expert in that field.

Can anyone please help me out ?

答案1

得分: 1

这个流程应该可以工作:

  1. 获取文件(仅属性)

    • 包括嵌套项目 设置为 "是"
    • 筛选查询 字段设置为 Created le '2022-12-31'
  2. 应用于每个 中的 条件

    • 检查 IsFolder 是否等于 false
  3. 如果是,删除文件

    • 文件标识符: 标识符(来自 获取文件(仅属性) 操作)
  4. 如果不是,不执行任何操作。

示例流程如下:

Sharepoint Online中的文件自动删除

英文:

This flow should work:

  1. Get files (properties only).

    • Set Include Nested Items to "Yes"
    • Set Filter Query field to Created le '2022-12-31'
  2. Condition in Apply to each.

    • Check if IsFolder is equals to false
  3. If yes, Delete file

    • File Identifier: Identifier (from the Get files (properties only) action)
  4. If no, do nothing

Example flow below:

Sharepoint Online中的文件自动删除

huangapple
  • 本文由 发表于 2023年2月27日 16:15:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75578104.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定