Task: LoneScale - Push contacts to track from Hubspot to LoneScale

n8n workflow JSON:
{"id":"25","meta":{"instanceId":"81b0d0f4ebb052991cb352e76cb8b2803ed521afd57aeef066e0ecfe83fd76cc"},"name":"LoneScale - Push contacts to track from Hubspot to LoneScale","tags":[{"id":"1","name":"Example","createdAt":"2022-12-30T09:13:52.086Z","updatedAt":"2022-12-30T09:13:52.086Z"}],"nodes":[{"id":"b59c88ed-a249-4a48-baa7-a4e89b50bf5f","name":"Start","type":"n8n-nodes-base.start","position":[-200,80],"parameters":{},"typeVersion":1},{"id":"d7c9c910-3987-4216-8733-717d271db09b","name":"Note","type":"n8n-nodes-base.stickyNote","position":[860,440],"parameters":{"width":505,"height":96,"content":"Replace \"IDLIST\" in the API Url with your list ID: \nhttps://public-api.lonescale.com/lists/IDLIST/item"},"typeVersion":1},{"id":"a812dbd8-d380-4ec9-872a-f218d360d51c","name":"Item Lists","type":"n8n-nodes-base.itemLists","position":[360,560],"parameters":{"options":{},"fieldToSplitOut":"=data"},"typeVersion":1},{"id":"9878a00b-840c-4080-bc8a-e30294a7d84b","name":"SplitInBatches","type":"n8n-nodes-base.splitInBatches","position":[580,560],"parameters":{"options":{},"batchSize":1},"typeVersion":1},{"id":"f21cd126-cd88-482d-8605-e0185ebd983b","name":"pushIntoLoneScale","type":"n8n-nodes-base.httpRequest","position":[920,560],"parameters":{"url":"https://public-api.lonescale.com/lists/IDLIST/item","options":{},"requestMethod":"POST","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","bodyParametersUi":{"parameter":[{"name":"first_name","value":"={{ $json[\"first_name\"] }}"},{"name":"last_name","value":"={{ $json[\"last_name\"]}}"},{"name":"full_name","value":"={{ $json[\"name\"]}}"},{"name":"linkedin_url","value":"={{ $json[\"b3fe861be77138ed4fe55d59115ad0721b78d868\"]}}"},{"name":"company_name","value":"={{ $json[\"org_id\"][\"name\"]}}"},{"name":"current_position","value":"={{ $json[\"54a75180ed4af35899fd8920ac24d442d45036a1\"]}}"},{"name":"location","value":"={{ $json[\"7ac2ca9eaf569ce3a9c441012bb9fe5c2b7cdf57\"]}}"},{"name":"contact_id","value":"=  {{ $json[\"id\"]}}"},{"name":"email","value":"= {{ $json[\"email\"][0][\"value\"] }}"},{"name":"typeContact","value":"customers"}]}},"credentials":{"httpHeaderAuth":{"id":"2","name":"LoneScaleAccount"}},"typeVersion":2},{"id":"b400d5f6-5b2a-492c-bc1b-f02dd56e19ea","name":"HubSpot Trigger","type":"n8n-nodes-base.hubspotTrigger","position":[120,500],"webhookId":"2bcc2aec-91d4-4ff4-874d-94de798f3f14","parameters":{"eventsUi":{"eventValues":[{"name":"contact.propertyChange"}]},"additionalFields":{}},"typeVersion":1},{"id":"5908a21d-b7f3-4c8a-93d1-4906a81fd23f","name":"HubSpot","type":"n8n-nodes-base.hubspot","position":[120,660],"parameters":{"resource":"contact","operation":"getAll","additionalFields":{}},"typeVersion":1},{"id":"f5b1a3ec-8f72-4e5e-b9af-01a5c2faa6ee","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[80,360],"parameters":{"width":219,"height":124,"content":"Choose if you wish to have workflow start by Hubspot for any contact matching criteria or to get a list of contacts"},"typeVersion":1},{"id":"343780d7-13cc-4c62-814c-5496c5187121","name":"Wait","type":"n8n-nodes-base.wait","position":[740,560],"webhookId":"50768c4d-9686-4ec4-8b26-a73e02f8f604","parameters":{"unit":"seconds","amount":0.1},"typeVersion":1},{"id":"5d713907-0004-425f-8e55-5b516154f9da","name":"HubSpot1","type":"n8n-nodes-base.hubspot","position":[1140,560],"parameters":{"resource":"contact","additionalFields":{"customPropertiesUi":{"customPropertiesValues":[{"value":"=pushed_to_lonescale_{{new Date().toLocaleDateString()}}_{{new Date().toLocaleTimeString()}}","property":"statut"}]}}},"typeVersion":1},{"id":"bb4e242e-12b6-485b-9821-149bde4dc54a","name":"createListLoneScale","type":"n8n-nodes-base.httpRequest","position":[380,920],"parameters":{"url":"https://public-api.lonescale.com/lists/","options":{},"requestMethod":"POST","authentication":"genericCredentialType","genericAuthType":"httpHeaderAuth","bodyParametersUi":{"parameter":[{"name":"name","value":"Test 1"},{"name":"entity","value":"PEOPLE"}]}},"credentials":{"httpHeaderAuth":{"id":"2","name":"LoneScaleAccount"}},"typeVersion":2},{"id":"f3f98f76-a27e-4237-9f5e-e5cba8b3ac3e","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[300,1080],"parameters":{"height":84.26512968299707,"content":"Node you can use alone clicking on ▶️ to create a list in lonescale"},"typeVersion":1}],"active":false,"pinData":{},"settings":{},"versionId":"1e0df133-7f56-4038-b26c-60def836ad3a","connections":{"Wait":{"main":[[{"node":"pushIntoLoneScale","type":"main","index":0}]]},"HubSpot":{"main":[[{"node":"Item Lists","type":"main","index":0}]]},"HubSpot1":{"main":[[{"node":"SplitInBatches","type":"main","index":0}]]},"Item Lists":{"main":[[{"node":"SplitInBatches","type":"main","index":0}]]},"SplitInBatches":{"main":[[{"node":"Wait","type":"main","index":0}]]},"HubSpot Trigger":{"main":[[{"node":"Item Lists","type":"main","index":0}]]},"pushIntoLoneScale":{"main":[[{"node":"HubSpot1","type":"main","index":0}]]}}}