capabilities.work

Organize Folder and Invite Reviewers

A 3-step recipe with Microsoft Word. We can help you get access.

Recipe · 3 steps

Organize Folder and Invite Reviewers

Create a folder, add a document, and invite reviewers.

  1. Create the project folder under the parent item, renaming on conflict. Graph returns 201 with the created folder drive item.
  2. Upload the Word document content into the target item. Graph returns 200 when replacing content or 201 when creating a new file.
  3. Send a sharing invitation granting the recipient write access with a notification. Graph returns 200 with the granted permissions.
What you'll need to have ready
  • parentItemId: The drive item identifier of the parent under which to create the folder.
  • folderName: The name of the new folder to create.
  • documentItemId: The drive item identifier to upload the document content into.
  • fileContent: The binary .docx content to upload.
  • recipientEmail: The email address of the reviewer to invite.
  • inviteMessage: The message included in the sharing invitation.
For your developer

Arazzo workflow microsoft-word:organize-and-invite, 3 operations: createFolder → uploadContent → addPermissions. Specs on APIs.io.