PowerAutomate: Unzip はパスワード付きはやっぱり無理ですな

# 背景

以前、会社で相談された 

- Mail 添付の圧縮ファイルを自動で解凍できないか？

について、当時調べて、無理だった記録

# 結論

以下 Action は、英語版でもそれっぽい記載無し。単なる解凍しかダメですね

https://learn.microsoft.com/en-us/connectors/sharepointonline/#extract-folder

https://learn.microsoft.com/ja-jp/connectors/sharepointonline/#%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E3%83%BC%E3%81%AE%E6%8A%BD%E5%87%BA

Forum でも、特に情報なし

https://powerusers.microsoft.com/t5/Building-Flows/Want-to-unzip-Password-protected-zip-file/td-p/908292

# パスワード無しの解凍の例

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/120072/e9372053-8b13-c45c-8ec3-687f1fc07e13.png)


```automate: 旧Designerでしか対応してない、Copy 
{"id":"fef29844-85b3-4b1c-8a8e-dbb5093bd2ca","brandColor":"#8C3900","connectionReferences":{"shared_office365_1":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_office365/connections/cda4ee86c13b40978832f18898d7bdcb"}},"shared_sharepointonline_1":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline/connections/shared-sharepointonl-15e7a58d-6555-418d-a955-a6b286a76a7b"}},"shared_office365":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_office365/connections/shared-office365-2199ecf5-3ffa-422c-8ed0-16dc8fcc83d8"}},"shared_sharepointonline":{"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline/connections/ec546d3a75a44c11942084615bd117de"}}},"connectorDisplayName":"Control","icon":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMyIDMyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KIDxwYXRoIGQ9Im0wIDBoMzJ2MzJoLTMyeiIgZmlsbD0iIzhDMzkwMCIvPg0KIDxwYXRoIGQ9Im04IDEwaDE2djEyaC0xNnptMTUgMTF2LTEwaC0xNHYxMHptLTItOHY2aC0xMHYtNnptLTEgNXYtNGgtOHY0eiIgZmlsbD0iI2ZmZiIvPg0KPC9zdmc+DQo=","isTrigger":false,"operationName":"Scope","operationDefinition":{"type":"Scope","actions":{"For_each":{"type":"Foreach","foreach":"@triggerOutputs()?['body/attachments']","actions":{"Create_file":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_sharepointonline_1","operationId":"CreateFile","apiId":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline"},"parameters":{"dataset":"https://shimakuma.sharepoint.com/sites/testforflow","folderPath":"/Shared Documents/機能確認","name":"@item()?['name']","body":"@item()?['contentBytes']"},"authentication":"@parameters('$authentication')"},"runAfter":{},"runtimeConfiguration":{"contentTransfer":{"transferMode":"Chunked"}}},"Extract_folder":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_sharepointonline_1","operationId":"ExtractFolderV2","apiId":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline"},"parameters":{"dataset":"https://shimakuma.sharepoint.com/sites/testforflow","source":"@outputs('Create_file')?['body/Path']","destination":"/Shared Documents/機能確認/zipExtracted/","overwrite":true},"authentication":"@parameters('$authentication')"},"runAfter":{"Delay":["Succeeded"]}},"Delay":{"type":"Wait","inputs":{"interval":{"count":5,"unit":"Second"}},"runAfter":{"Create_file":["Succeeded"]}}},"runAfter":{}}},"runAfter":{}}}
```

# あとがき

メモってあったので、一応書き起こしておこうと思っただけの、本当に誰にも役立たないメモ :sweat: