go.sh added
This commit is contained in:
1 parent
2fd8b5be48
commit
fca6acaf45
2 files changed
+37
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
mkdir -p logs
|
||||||
|
|
||||||
|
echo "===== Avvio: $(date) =====" >> logs/output.log
|
||||||
|
node src/hubspotConnector.js --dryRun 2>&1 | tee -a logs/output.log
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
===== Avvio: Wed Aug 26 09:13:57 CEST 2026 =====
|
||||||
|
◇ injected env (1) from .env // tip: ⌘ suppress logs { quiet: true }
|
||||||
|
Retrieving data from Keystone...
|
||||||
|
TEST/DRY MODE: Date not modified on JSON file.
|
||||||
|
Data retrieved successfully!
|
||||||
|
Now Connecting to Hubspot...
|
||||||
|
getAccessToken
|
||||||
|
getAccessToken
|
||||||
|
New access token generated
|
||||||
|
Hubspot connection is ready!
|
||||||
|
Connection successful!
|
||||||
|
--- DRY RUN MODE: No changes will be saved to HubSpot ---
|
||||||
|
Preview Lead 1:
|
||||||
|
[
|
||||||
|
{
|
||||||
|
id: 'videeshasawane@gmail.com',
|
||||||
|
idProperty: 'email',
|
||||||
|
properties: {
|
||||||
|
firstname: 'Videesha ',
|
||||||
|
lastname: 'Sawane',
|
||||||
|
email: 'videeshasawane@gmail.com',
|
||||||
|
phone: '+91 8454046665',
|
||||||
|
corso_keystone: 'Italian Culinary Program',
|
||||||
|
leadsource: 'keystone'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
Process DRY-RUN completed!
|
||||||
|
HubSpot Batch Response: DRY-RUN mode successful
|
||||||
|
All contacts have been created!
|
||||||
Reference in new issue
Block a user