首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >删除项目审批流

删除项目审批流
EN

Stack Overflow用户
提问于 2019-02-16 02:58:58
回答 1查看 1.4K关注 0票数 0

我们有一个SharePoint Online网站,用户可以在该网站上向文档库添加/删除项目。但是,我们希望添加一个步骤,以便在实际删除项目之前批准删除操作(不希望从回收站恢复项目)。这个是可能的吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-02-16 04:29:18

不幸的是,只有当文件/项目已经被删除时,才会在删除之前没有触发器。您可以在项目被删除时触发流程,请求审批,如果项目被拒绝,则使用REST API从回收站查找并恢复项目。

在回收站中找到合适的项目有点棘手,但这是可以实现的。

截图中的first(...)为:first(body('Parse_JSON')?['value'])?['Id']

解析JSON操作中的架构:

代码语言:javascript
复制
{
    "type": "object",
    "properties": {
        "odata.metadata": {
            "type": "string"
        },
        "value": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "odata.type": {
                        "type": "string"
                    },
                    "odata.id": {
                        "type": "string"
                    },
                    "odata.editLink": {
                        "type": "string"
                    },
                    "AuthorEmail": {
                        "type": "string"
                    },
                    "AuthorName": {
                        "type": "string"
                    },
                    "DeletedByEmail": {
                        "type": "string"
                    },
                    "DeletedByName": {
                        "type": "string"
                    },
                    "DeletedDate": {
                        "type": "string"
                    },
                    "DeletedDateLocalFormatted": {
                        "type": "string"
                    },
                    "DirName": {
                        "type": "string"
                    },
                    "DirNamePath": {
                        "type": "object",
                        "properties": {
                            "DecodedUrl": {
                                "type": "string"
                            }
                        }
                    },
                    "Id": {
                        "type": "string"
                    },
                    "ItemState": {
                        "type": "integer"
                    },
                    "ItemType": {
                        "type": "integer"
                    },
                    "LeafName": {
                        "type": "string"
                    },
                    "LeafNamePath": {
                        "type": "object",
                        "properties": {
                            "DecodedUrl": {
                                "type": "string"
                            }
                        }
                    },
                    "Size": {
                        "type": "string"
                    },
                    "Title": {
                        "type": "string"
                    }
                },
                "required": [
                    "odata.type",
                    "odata.id",
                    "odata.editLink",
                    "AuthorEmail",
                    "AuthorName",
                    "DeletedByEmail",
                    "DeletedByName",
                    "DeletedDate",
                    "DeletedDateLocalFormatted",
                    "DirName",
                    "DirNamePath",
                    "Id",
                    "ItemState",
                    "ItemType",
                    "LeafName",
                    "LeafNamePath",
                    "Size",
                    "Title"
                ]
            }
        }
    }
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54715557

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档