Forum Discussion
No longer able to create ZIP file via SharePoint API
Hello,
since yesterday my PowerFlow fails when trying to create a ZIP via SharePoint API.
It was working fine for weeks.
This is the code:
{
"type": "OpenApiConnection",
"description": "Submits the request to the media server and downloads the Zip file",
"inputs": {
"parameters": {
"dataset": "@{body('SharePointHTTP')['ListSchema']['.mediaBaseUrl']}",
"parameters/method": "POST",
"parameters/uri": "/transform/zip?cs=@{body('SharePointHTTP')['ListSchema']['.callerStack']}",
"parameters/headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"parameters/body": "zipFileName=test.zip&guid=@{guid()}&provider=spo&files=@{encodeUriComponent(outputs('Attachment_Items'))}&oAuthToken="
},
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
"connection": "shared_sharepointonline_1",
"operationId": "HttpRequest"
}
},
It fails with this message:
Bad Request, SharePoint Site Address 'https://northeurope1-mediap.svc.ms/' is not valid
See also:
https://community.powerplatform.com/forums/thread/details/?threadid=c383a416-d4b6-ef11-b8e8-7c1e524a3a16
Thank you
Johannes