Log Google Sheets rows by credit status and amount

Utilities

What it does

When someone adds a row to a Google Sheets spreadsheet, this automation checks if the row has an ID. It searches for matching rows, evaluates each one's credit status and amount, then logs the results to the job report.

Who it's for

Finance teams who need to validate and track Google Sheets entries by credit type and transaction size.

How teams use this

Validate debit transactions in bulk

When rows are added to the sheet, automatically check that debit entries have no minus sign in the amount field and log valid transactions. The team reviews the report to catch data entry errors before processing.

Detect duplicate customer records

Route rows with duplicate IDs to a separate log so the team can merge or remove them. Only the logging destination changes, keeping the validation logic intact.

Add approval step for flagged amounts

Include a condition to check if the amount exceeds a threshold, then route those rows to an approval queue before logging this automation. This requires adding a threshold value and an approval step.

How it works

  1. New row added to the sheet. A new row is added to a Google Sheets spreadsheet with data in the ID column and other fields.
  2. Search for matching rows in Google Sheets. Query the Google Sheets spreadsheet to find all rows that match the ID from the new row, returning a list of results for review.
  3. Evaluate credit status and amount for each row. For each row returned, check if the credit status is false and the amount does not contain a minus sign, then log the outcome to the job report.
  4. Flag duplicate rows in the job report. If more than one row matches the ID, log a duplicate alert to the job report so someone can investigate and resolve the conflict.