doc-site
Reference

misc scripts

What each script and data file in misc/ does, what it reads and writes, and whether it is still relevant.

misc/ holds scripts written for one-off data fixes, investigations and earlier versions of the integrations. None of them run as part of the build or in production.

Several scripts write to live Shopify or Zoho data. Read a script fully before running it, and run it only with a clear reason and a backup plan.

Several JSON and CSV files are 2024 exports from Zoho. Treat everything in misc/ as containing personal information. Do not copy the files elsewhere or attach them to tickets.

Scripts

PathWhat it doesReadsWritesStatus
misc/seo-redirects/Creates Shopify URL redirects for city and sport pages and sets page templates to combo-landing-pageCSV and JSON plans in the folderShopify redirects and page templatesCompleted in June and December 2025. The output files are the record
misc/zoho-bulk-camp-update.mjsRuns the Zoho function camp_update_booking_details for each camp in camp-ids.jsonmisc/camp-ids.jsonZoho CampsOne-off, August 2024
misc/zoho-find-broken-participants.mjsFinds Spring 2024 participants without a booking and, when not a dry run, deletes duplicatesZoho ParticipantsZoho Participants, JSON reports in the working folderOne-off, September 2024
misc/zoho-get-booking-participants.mjsReports participants per bookingmisc/booking-ids.json, Zohobooking-participants.json, booking-participants-summary.csvOne-off, September 2024
misc/filter-metafield-sync/Copied product Sport Safe Name into a variant filters.sport metafield for a former filter appShopify bulk exportShopify variant metafieldsObsolete
misc/camp-tagger/Parses a bulk export of variants and logs them. Never tags anythingall-variants.jsonlConsole onlyUnfinished
misc/common/utils.mjssleep and a parser for Shopify bulk export filesShared helper
misc/deluge-scraper.jsTampermonkey userscript that downloads Zoho function code from the Zoho editorZoho CRM in the browser.dg downloadsTooling, June 2024
misc/sheet-manager.gsGoogle Apps Script for a Zoho module and field audit spreadsheetGoogle SheetsGoogle SheetsOne-off, 2024
seo-urls.js, at the repository rootPrints a menu payload for the SEO Footer Links menuHard-coded listsConsole onlyObsolete

Reference copies

PathContentsStatus
misc/deluge-scripts/About 130 Zoho CRM functions as .dg files: booking, participant and membership workflows, daily updates, buttons, coach and MYOB functions, and test functionsUpdated by hand, most recently August 2026. Zoho holds the live versions
misc/zapier-scripts/Four Rollup packages with the 2024 Zapier code steps for Zoho sync, confirmation emails, form submissions and membership passesSuperseded by shopify-zoho-integration. The auto-archive and form title steps may still be in use in Zapier

Data files

PathContents
misc/booking-ids.json, misc/booking-ids-missed.json, misc/camp-ids.json, misc/zoho-order-ids.jsonZoho record ids and Shopify order numbers used as script input
misc/booking-participants.json, misc/booking-participants-summary.csvOutput of the booking participants report
misc/no-action-required.json and the other small JSON and TXT files beside itOutput of the broken participants script
misc/seo-redirects/*.csv, *.jsonRedirect plans and results
misc/camp-tagger/all-variants.jsonl, misc/filter-metafield-sync/*.jsonl, parsed.jsonShopify bulk exports

Running a script

Scripts in misc/ are plain Node files run with node <path> from the folder the script expects, usually misc/. They need the environment variables listed in Environment variables, and some import JSON with import attributes, which needs a recent Node version.

Prefer the maintained scripts in the asc-api-src-zoho-integration repository for any new Zoho data work.

On this page