通过Power Automate获取SharePoint的Share Link
目录
- 前情提要:
- 通过Power Automate进行权限控制
- 通过Power Automate自动获取Share Link
前情提要:
当将SharePoint的某一项Item共享给外部用户时,会生成一个Share Link
用户访问Share Link,会先进行账号登陆验证身份,然后才能进入对应的List,查看有权限的Item。
Share Link的格式如下:
https://xxx.sharepoint.com/:li:/s/ListName/xxxxxxxxxxxxxxxxxx
通过Power Automate进行权限控制
通过Power Automate可以单独为SharePoint的某一项Item赋予权限
Recipients 是要赋予权限的邮箱
Roles 是设置权限级别
Notify Recipients如果为No,则不会通知该用户;如果为Yes,会自动发送一封附带Share Link的邮件:
通过Power Automate自动获取Share Link
通过Send an Http request to SharePoint可以获取 某列表 的 某一项 的Sharing Information:
Method: POST
Url:
_api/web/lists/GetByTitle('列表名')/items(项的ID)/GetSharingInformation?$select=permissionsInformation&$Expand=permissionsInformation
Headers:
Accept | Application/json |
Content-Type | Application/json |
然后通过如下方式,获取我们想要的URL链接:
body('Send_an_HTTP_request_to_SharePoint')?['permissionsInformation']['links']?[0]?['linkDetails']['Url']
欢迎关注我的博客,与我一起学习,我将持续分享我的学习过程,我是 热爱学习的小翁同学~