Sync purchase orders from ICT to Google Drive
Recipe ToolsMarketingDeveloper ToolAPI IntegrationData ParserUtilitiesDocument/FileSales Enablement
What it does
When the clock triggers every 5 minutes, this automation fetches purchase order data via HTTP and parses it into a CSV file. It retries failed requests up to 3 times and logs any errors that persist so someone can investigate.
Who it's for
Procurement teams who need purchase order data synced to Google Drive on a regular schedule without manual exports.
How teams use this
Keep purchase orders current in Google Drive
Run the sync every 5 minutes so the team always has the latest purchase order data in one place. No manual exports or file transfers are needed.
Alert the team when syncs fail
Add a Slack notification step after the error log so someone is notified immediately when a purchase order sync does not complete. The retry logic stays the same.
Sync to a different cloud storage
Replace Google Drive with OneDrive or SharePoint so the purchase order CSV lands in the team's preferred storage. The fetch and parse steps do not change.
Filter purchase orders by status before upload
Add a condition to only sync purchase orders with a status of approved or pending. This reduces file size and keeps the team focused on orders ready to process.
How it works
- Check for new data every 5 minutes. This automation runs on a 5-minute interval to keep purchase order data current.
- Fetch purchase order headers via Rest. Retrieve purchase order headers from the ICT system using Rest. If the request fails, retry up to 3 times before logging the error to track what did not sync.
- Parse data into CSV format. Convert the fetched purchase order records into a structured CSV file with headers and line items organized for upload to Google Drive.
- Upload CSV to Google Drive. Save the parsed purchase order CSV file to Google Drive so the team can access the latest data without manual steps or file transfers.
- Log persistent errors. If any request fails after 3 retries, send details to a log so the team knows which purchase orders did not sync and can investigate.