Browse Folder and Copy Document
A 2-step recipe with Microsoft Word. We can help you get access.
Recipe · 2 steps
Browse Folder and Copy Document
with Microsoft Word
List a folder's children and copy the first document when present.
- List the documents contained in the folder, ordered by name, and capture the first item's identifier when present.
- Asynchronously copy the first document in the folder under a new name. Graph returns 202 Accepted while the copy operation runs in the background.
What you'll need to have ready
- folderItemId: The drive item identifier of the folder to browse.
- copyName: The name to give the copied document.
- top: The maximum number of children to return.
For your developer
Arazzo workflow microsoft-word:browse-and-copy, 2 operations: listChildren → copyDriveItem. Specs on APIs.io.