You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(crm-starter-export): --enrich-links — the identity links and pulse streams reach Twenty after all
The operator's original ask ("include the identity links and pulse
streams") made it into the CSVs but not the CRM — the v1 import mapped
only domain + LinkedIn, and this instance's company object turned out to
have NO native social fields at all. The enrichment pass mints six
custom LINKS fields (xLink, youtubeLink, facebookLink, instagramLink,
otherLinks, pulseStreams — the last two using LINKS' secondary-links
capacity for multi-valued data, streams keeping their labels) and fills
them per company with null-only patches: a link set in the app is never
clobbered.
First live run: 6 fields created, 63 companies patched, 19 already
complete/empty, zero failures.
Files changed:
- scripts/import-crm-starter-to-twenty.mjs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RW28dw3kQAKXr2ZNefCukE
// Guard: the canonical layer contains at least one literal "unknown"
123
126
// website value — bad URLs surface as blank domains, never crashes.
124
127
letdomain=(r.domains||'').split(' | ')[0];
@@ -345,6 +348,89 @@ for (const p of people) {
345
348
}
346
349
if(repaired)console.log(`attach-repair: ${repaired} people gained their company (null-only fill)`);
347
350
console.log('\nVERIFY: spot-check five companies for link fidelity, three multi-affiliation people, then re-run this script — it should report 0 to create (the external-id round-trip proof).');
0 commit comments