rpaframework
rpaframework copied to clipboard
RPA.MSGraph.Download File From Share Link should use download link from metadata
I tried to download a shared file from a sharepoint list. It always produces 3kb file, which is corrupted.
I found that direct_url doesn't point to the file, but to the metadata. Getting the downloadUrl from the metadata would fix the issue, but I'm not sure how this approach works in other use cases. At least the graph api documentation says it can be used to download the file.
# file_instance = SharedItem(data, direct_url, self.client.con)
file_instance = SharedItem(data, data["@microsoft.graph.downloadUrl"], self.client.con)
Any change of getting attention to this small but important issue?