Parse XML files from Google Drive on schedule

Recipe ToolsMarketingDocument/FileSales EnablementData ParserUtilities

What it does

When a scheduled trigger fires every 5 minutes, this automation downloads a file from Google Drive and parses the content. The parsed data is logged to the job report for monitoring and downstream use.

Who it's for

Operations teams who need to extract and process structured data from Google Drive on a recurring schedule.

How teams use this

Monitor vendor payments from cloud storage

Download files containing vendor payment data from Google Drive every 5 minutes and parse the structure. The team sees all parsed records in the job report without opening files manually.

Route parsed data to an ERP system

Add an API call step after parsing to send the converted data to an accounting system. This requires setting up an endpoint that accepts the parsed JSON payload from this automation.

Process files from a different folder

Point the Google Drive step to a different folder or shared drive so another team can use the same parsing logic. The parsing steps remain unchanged and only the source location shifts.

How it works

  1. Run on a 5-minute schedule. The automation starts every 5 minutes so new files in Google Drive are checked and processed on a regular cadence.
  2. Download file from Google Drive. Retrieve the file contents from the specified Google Drive location so the data can be parsed and processed downstream.
  3. Parse the document structure. Extract structured data from the file using the Xml Parser and create variables for invoice ID, vendor payment details, and key identifiers needed for processing.
  4. Convert to JSON format. Transform the extracted data into JSON format using the Json Parser, then log the parsed output to the job report for visibility and monitoring.