Resolve a sharing link
files_resolve_shareResolve a OneDrive or SharePoint sharing link to its drive address (driveId, itemId, name, size, webUrl). Use it as the first step from a Teams or mail attachment to the file.
Instructions
Resolves a OneDrive/SharePoint sharing link to the drive address behind it: driveId plus itemId, name, kind, size, mime type and webUrl. The contentUrl on a Teams message attachment and the sourceUrl on a mail reference attachment are both sharing links, so this is the first step from either to the file itself — or skip it and pass the link straight to files_parse_document as shareUrl. Needs the Files.Read.All scope, which a user can consent to without an administrator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shareUrl | Yes | A OneDrive/SharePoint sharing link, e.g. a contentUrl from a Teams message attachment or a mail reference attachment. Resolves to the drive address behind it. |