Gmail synchro don't work with message create in gmail by api request
I created some messages by using api call in an n8n workflow, someone are in sendbox and someone are in draft folder.
The messages created manually are completly sync but those created by api had just subject sync, body doesn't appear.
Have you an idea why and how i can solve that ?
I'm in twentycrm 1.4.1, selfhosted.
7 Replies
Hi Sebastien, what do you mean the body doesn't appear? Could you provide screenshots of your app + db ?
Hi Charles, look an example with body and an example without.


And your database ? the message table in your worksapce schema, especially for these two messages
For the moment i don't know how i can access to my database, because i had install twentycrm with easypanel and docker image.
I try to solve with another way, probably the problem are in html structure i use for body content with my api call. When i take one of emails don't appear in twenty and forward it with my gmail client, the display problem stay after sending.
Hi @charles , i had verify différent html structure for create draftmessage by API and that never work correctly. Everytime body was'nt display on twentycrm windows. After edit on draft folder and few minutes, the body appear corectly on twenty crm.
I had installe Gpadmin for search info in my database.
Can help me to find the path where the data for email synchro are ?
It's ok, i had found the path with gemini's help. You can see the data on the screen shot.
All the message with empty text was created by api or never edit on gmail client.
For me the twentycrm sync with gmail don't read the body when it was created by api.
I had test to create email by api with similar html structure than gmail client and the issue stay present, the body text don't appear on twenty crm windows.

Here you can see the behavior of twentycrm for the same message before editing and after editing.
The second bug is the shadow message in the thread after editing in gmail.
I had tested many way to format html api sending like html creating in gmail but that don't solve the issue.
Anybody here who are in twentycrm developper's team can report this issue ?

I created new issue on github. ✅
Please work hard to resolve this bug.