Sync on-prem files to Home Depot via Rest API
Document/FileDeveloper ToolAPI IntegrationRecipe Tools
What it does
When new or updated files appear in an on-prem directory, this automation downloads the file and posts it to Home Depot. Someone receives an email when the sync succeeds or encounters an error.
Who it's for
Operations teams who need to sync on-prem files to Home Depot systems without manual uploads.
Apps used
How teams use this
Sync inventory updates to Home Depot
Post inventory file changes from an on-prem system to Home Depot via Rest API. The file is renamed after a successful post so it is not sent twice.
Route files by type to different endpoints
Extend this automation to check the file name or contents and post to different Home Depot endpoints based on whether it is inventory, pricing, or order data. Only matching files are processed.
Alert IT when sync fails
Add a step to send an email to IT when the Home Depot post fails so errors are caught right away. The file is renamed with ERROR in the path so it is not retried.
Archive processed files to backup storage
Include a step to move successfully synced files to a backup directory after posting to Home Depot. This keeps the on-prem directory clean and maintains a record of what was sent.
How it works
- Monitor on-prem directory for new files. Watch an on-prem directory for new or updated files and folders. The automation skips files with PROCESSED or ERROR in the path so they are not processed twice.
- Download the file contents. Retrieve the full contents of the detected file from the on-prem location so the data is ready to send to Home Depot.
- Request token and post status. Call the HTTP token endpoint to get credentials, then post the status event to Home Depot with the file contents.
- Rename the file to mark it processed. Add PROCESSED to the file path so this automation does not pick it up again on the next run through the directory.
- Send confirmation email. Notify someone via email that the file was posted to Home Depot and the on-prem file was renamed successfully.