Sync Namely profiles to Google Sheets with pagination

Recipe ToolsMarketingHR managementDocument/FileSales Enablement

What it does

When the clock triggers every 5 minutes, this automation fetches all profiles from Namely. It calculates page count, loops through each page, and writes all results to Google Sheets in batches.

Who it's for

HR teams who need Namely profile data in Google Sheets without manual exports or incomplete syncs.

How teams use this

Sync large employee datasets without timeouts

Fetch thousands of Namely profiles by breaking the request into 30-profile pages, then batch-write them to Google Sheets. Pagination prevents API timeouts and keeps the sheet current every 5 minutes.

Report on Namely data in a shared spreadsheet

Let managers and analysts view current Namely profiles in Google Sheets without needing Namely access. The automation handles all syncing so the sheet is always up to date.

Filter profiles by department before syncing

Add a department filter condition to the Namely request so only profiles from a specific department are fetched and written to the sheet. This keeps the spreadsheet focused and reduces row count.

How it works

  1. Start sync every 5 minutes. The automation runs on a schedule every 5 minutes to keep the spreadsheet current with Namely data.
  2. Fetch all profiles from Namely. Call Namely to get all profiles and determine the total count so the automation can calculate how many pages of results exist at 30 profiles per page.
  3. Loop through each page of results. For each page number calculated in step 2, call Namely with the page parameter so all profiles are retrieved in batches rather than one large request.
  4. Write profile rows to Google Sheets. Add multiple rows to the spreadsheet with all profile details from each page so the data is complete, organized, and ready for reporting.