Automation library · Data collection

CSV to HubSpot Uploader with Google Sheets Integration

Started by someone submitting a form, and works across Google Sheets. 26 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

26 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 15Service 9

The steps in the order they run, from what starts it.

  1. 1Start here to update your field listManual triggerStarts it
  2. 2File upload formForm triggerStarts it
  3. 3Erase Google sheetGoogle SheetsService
  4. 4To get the first line of fileExtract From FileService
  5. 5Get the content of fileExtract From FileService
  6. 6Define array of objectsSetLogic
  7. 7Set the real fieldsSetLogic
  8. 8Merge fields and dataMergeLogic
  9. 9Split by objectSplit OutLogic
  10. 10Get the fields from the sheetGoogle SheetsService
  11. 11Fetch properties from HubspotHttp RequestService
  12. 12Check if all fields from input are definedCodeLogic
  13. 13Define crm_typeCodeLogic
  14. 14If all fields are definedIfLogic
  15. 15Split resultsSplit OutLogic
  16. 16Set the values for each fieldCodeLogic
  17. 17Creates the correspondance tableCodeLogic
  18. 18Remove hidden and starting with hs_ props fieldsFilterLogic
  19. 19Split all records to importSplit OutLogic
  20. 20Form to set the correponding field for each input fieldFormService
  21. 21Transforms the resultsCodeLogic
  22. 22Define propertiesSetLogic
  23. 23Set the values for each field1CodeLogic
  24. 24Append to Google sheetGoogle SheetsService
  25. 25Uploads to HubspotHttp RequestService
  26. 26Form responseFormService

How it's built

Starts on
Someone submitting a form
Steps
26, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 26 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 26 steps before you point it at anything that matters.