Sync consignment waypoints to Google Sheets

Recipe ToolsDocument/FileSales Enablement

What it does

When another automation sends a consignment request, this automation iterates through each consignment and waypoint. It writes each waypoint as a row to Google Sheets and returns a success response or catches errors and notifies stakeholders by email.

Who it's for

Operations teams who need to log consignment waypoints in a backend system without manual data entry.

How teams use this

Log shipment waypoints from multiple sources

Receive consignment requests from different automations and write all waypoints to a single Google Sheets backend. Each waypoint becomes one row, keeping the data centralized and queryable.

Route consignments to different sheets by status

Add a condition to check the location code and write waypoints to different Google Sheets tabs based on shipment status or region. The loop structure stays the same.

Escalate delays to the support team

Include a check in the error handler to detect delayed waypoints and send an alert to customer support instead of just logging the error. Stakeholders get notified faster.

How it works

  1. Receive consignment request. Another automation sends a standardized consignment request with location codes and waypoint data to this automation in real time.
  2. Write each waypoint row. Loop through each consignment and its waypoints, then add a new row to Google Sheets for every waypoint in the incoming request data.
  3. Return success response. Send a positive response back to the requesting automation so it knows the waypoints were written to Google Sheets.
  4. Notify stakeholders of errors. If Google Sheets encounters an error, send an email to stakeholders with error details, then stop the job.