Quick Overview
This workflow runs daily at 7am to back up Hostinger Reach contacts and segments into Google Sheets, upserting records into separate Contacts and Segments tabs and adding a last_synced_at timestamp for tracking.
How it works
- Runs every day at 7am and sets the target Google Sheets URL plus the tab names for contacts and segments.
- Requests the first page of Hostinger Reach contacts and continues fetching additional pages until the last page is reached.
- Splits the returned contacts into individual records, maps key fields (including uuid and email), and adds a last_synced_at timestamp.
- Upserts the contact records into Google Sheets using uuid as the matching key.
- Fetches all Hostinger Reach segments, splits them into individual records, and adds a last_synced_at timestamp.
- Upserts the segment records into a separate Google Sheets tab using uuid as the matching key.
Setup
- Add a Hostinger API credential for the Hostinger Reach nodes that list contacts and segments.
- Add a Google Sheets credential and ensure the Google Sheet is accessible to that account.
- Update the Google Sheets URL and the Contacts/Segments tab names in the configuration step.
- Ensure your Contacts and Segments sheets include a uuid column (and any other fields you want to store) so upserts can match and update existing rows.