How to tell if new contacts are being generated from email?
Hey All, I'm suspicious about my email generating new people from email and calendar activity. I know the message are coming in, but I'm not sure if the process that creates a new person from those activities is working as it should. I've sent and received email that should have generated new people in the app but so far nothing has been created. Any ideas on how to see if that is working properly?
26 Replies
Hi @Raph, could you double check your Messaging / Calendar contact creation settings from the Settings / Accounts / Emails or Calendars page
I don't remember, are you on cloud or self-hosting?
Hi @charles I’m self hosted. I’ll take a look at the settings. Last I looked it said “importing”.
I think the import is stuck
what statuses do you see in your messagingChannel and calendarChannel tables?
Thanks @charles I'll take a look.
@charles
This si what I have. What am I looking for specifically?
@charles I'm coming back to this. It looks like the sync status is set to
The calendar sync is working as it should.
@charles I'm still having an issue with contacts from message syncing. No new contacts are being generated. The messageChannel. I can't seem to get contacts created from emails. The calendarChannel.syncStatus is set to
ONGOING
and the calendarChannel.syncedAt is set to [null]
. I see a calendarChannel.syncCursor set to 1095818
. Any ideas on what gives her? I'm suspecting that the calendarChannel.syncedAt should have a value other than null
?
All crons are good.
@thomast any ideas?
trying to get this figured out. ¯\_(ツ)_/¯I am not familiar with messaging. @charles or @Raphaël will be the best to answer
Hello @Raph ! Are you on the latest version of twenty?
The import seems to be stuck, did you launch the ongoing stale crons?
Hey, @Raphaël . Yes, I did reset the cron and I'm using v.0.32
I have the scripts in a bash script triggered by cron every 30 mins.
Could you try removing your google account and reconnecting it?
Sure!
It was working great for a while and then all of a sudden it stopped.
Otherwise you can try to edit your syncStage in the db to PARTIAL_MESSAGE_LIST_FETCH_PENDING
And same for your calendar channel if it's stuck
Let me take a quick look.
the syncedAt state is
NULL
syncState is set to MESSAGES_IMPORT_ONGOING
I'll disconnect and reauth the account.You can try to put in back to MESSAGES_IMPORT_PENDING manually
Before you disconnect your account
Oh! shoot, I just disconnected it 😬
No problem !
I'll reconnect it and see what happens.
Tell me if it works 🙂
The record is gone, reconnecting now.
ok - the syncedAt state is now again
[null]
and the syncStage state is now set to MESSAGES_IMPORT_PENDING
I'll trigger the commands to import the message and watch the logs.
Hmm. I'm seeing a 403 in the logs.
hitting googleapis.com
Is the google peopleAPI a new requirement?@Raph you are right it's a new requirement
we use it to also support import on different email aliases
good troubleshooting
Ah, might be a good idea to update the upgrade page to include that. I've since added the scope so we're all good there. I'm still testing the import. Something is wonky there too.
Just haven't had time to get to it.
Good point: https://github.com/twentyhq/twenty/pull/8441
GitHub
Add People API upgrade instruction to upgrade guide by charlesBoche...
I'm updating the docs as we now require the People API to be available to use messaging sync. This has been reported by a user self-hosting the app on discord.
I've just tested the Import feature and it seems to be working as expected (the feature is still quite limited though)
Thanks, @charles