PowerAutomate使用REST API打开报告网站集功能



我们可以通过PowerShell PnP打开此功能,但需要通过PowerAutomate REST API调用来实现。

下面是我们的FLOW REST API调用。

Site Address >> https://MYCO.sharepoint.com/sites/Sandbox
Method >> POST
URI >> /_api/web/features
Headers:
-accept : application/json;odata.metadata=none
-content-type : application/json
BODY:
{  
"url": "https://MYCO.sharepoint.com/sites/Sandbox/_api/web/features/add('7094bd89-2cfe-490a-8c7e-fbace37b4a34')"
}

当我运行FLOW时,我得到:

错误操作"Send_an_HTTP_request_to_SharePoint"失败

无效的请求。客户端请求Id:690efeb4-ddce-49a-b5d7-58e5e06db54a服务请求ID:94ea649f-80ce-b000-973f-9686227e5f12

尝试在URI中给出全部内容,并将正文留空

Site Address >> https://MYCO.sharepoint.com/sites/Sandbox
Method >> POST
URI >> /_api/web/features/add('7094bd89-2cfe-490a-8c7e-fbace37b4a34')
Headers:
-accept : application/json;odata.metadata=none
-content-type : application/json
BODY:

最新更新