Terms of Use file download? How to access this via the Graph API
Hi All,
I’ve started to play with Microsoft Graph in further details, but I’m having trouble with Terms of Use, I can retrieve the configuration and details on the file, but it would be great if I could programmatically download the file.
The following endpoint returns data:
– Policy and file – https://graph.microsoft.com/v1.0/agreements/{id}?$expand=files
However, the FileData attribute is empty. I can download the file fine from the portal, but it would be great to retrieve a URL or code to convert into the file type itself.
I’ve seen further documentation here, but not sure how to proceed:
agreementFileData resource type – Microsoft Graph v1.0 | Microsoft Learn
Any tips?
Thanks!
Hi All, I’ve started to play with Microsoft Graph in further details, but I’m having trouble with Terms of Use, I can retrieve the configuration and details on the file, but it would be great if I could programmatically download the file. The following endpoint returns data:- Policy and file – https://graph.microsoft.com/v1.0/agreements/{id}?$expand=filesHowever, the FileData attribute is empty. I can download the file fine from the portal, but it would be great to retrieve a URL or code to convert into the file type itself. I’ve seen further documentation here, but not sure how to proceed: agreementFileData resource type – Microsoft Graph v1.0 | Microsoft LearnAny tips? Thanks! Read More