Microsoft Office · Arazzo Workflow
Microsoft Office Update a OneDrive File and Verify the Write
Version 1.0.0
Read a file's metadata, back up its current bytes, upload new content, and read the item back.
Provider
Workflows
drive-file-update-roundtrip
Safely replace the content of an existing OneDrive file and confirm the result.
Captures the pre-update state of a driveItem, takes a content backup, replaces the content with the supplied bytes, and re-reads the item to verify the new size and lastModifiedDateTime.
1
inspectBeforeUpdate
getMyDriveItem
Read the driveItem before writing so the caller records the pre-update size and lastModifiedDateTime to compare against after the upload.
2
backupContent
downloadMyDriveItemContent
Download the current bytes before they are overwritten so the caller can restore the previous version if the update is later rejected.
3
uploadContent
uploadMyDriveItemContent
Replace the item's content with the supplied bytes. Graph returns the updated driveItem describing the newly written file.
4
verifyAfterUpdate
getMyDriveItem
Read the item back as an independent confirmation that the write is durable and that lastModifiedDateTime advanced past the pre-update stamp.