Licardo7
Licardo7
TTwenty
Created by Licardo7 on 6/24/2024 in #❓︱help
Fetching emails once Person is added
I am now paying for Twenty Cloud and do appreciate the ease of use. I am trying to get a all emails from my gmail as soon as I add a new contact in - I'm using zapier. Here's the context: My squarespace site is triggering a Zap that maps Squarespace -> Twenty (Create Custom Application object) A second Zap triggers OnApplicationCreated and maps TwentyApplicationObject -> TwentyPersonObject so I can have a primary person I want this new Person to have all emails with that email added to it. The Squarespace form sends me an email, so I would want it to show up in the activity tab. The Application object is acting like the Opportunities tab for us. My best guess is that I need to map the relationshp between the Person and whatever associates the Gmail Cronjobs to an email. I don't really understand the relationship through the Docs so would love some guidance on how to get this working!
3 replies
TTwenty
Created by Licardo7 on 6/5/2024 in #❓︱help
Gmail sync failed
Each time i connect my account to gmail, it appears as "Sync failed". I have the google console system set up, it's on test mode to take requests from my company's emails, and I have the following variables in my environments: The company, password, and secret information is made up for obvious reasons - but it's the correct info (at least I think!)
MESSAGING_PROVIDER_GMAIL_ENABLED=TRUE
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
FRONT_AUTH_CALLBACK_URL=https://21.company.com/verify
AUTH_PASSWORD_ENABLED=true
AUTH_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=xxxxxxxxxx.apps.googleusercontent.com
AUTH_GOOGLE_CLIENT_SECRET=xxxxxxxxxx
AUTH_GOOGLE_CALLBACK_URL=https://21.company.com/auth/google/redirect
AUTH_GOOGLE_APIS_CALLBACK_URL=https://21.company.com/auth/google-apis/get-access-token
IS_SIGN_UP_DISABLED=false
EMAIL_SMTP_HOST=smtp.gmail.com
EMAIL_SERVER_PORT=465
EMAIL_SERVER_PASSWORD='generated-app-password'
MESSAGING_PROVIDER_GMAIL_ENABLED=TRUE
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
FRONT_AUTH_CALLBACK_URL=https://21.company.com/verify
AUTH_PASSWORD_ENABLED=true
AUTH_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=xxxxxxxxxx.apps.googleusercontent.com
AUTH_GOOGLE_CLIENT_SECRET=xxxxxxxxxx
AUTH_GOOGLE_CALLBACK_URL=https://21.company.com/auth/google/redirect
AUTH_GOOGLE_APIS_CALLBACK_URL=https://21.company.com/auth/google-apis/get-access-token
IS_SIGN_UP_DISABLED=false
EMAIL_SMTP_HOST=smtp.gmail.com
EMAIL_SERVER_PORT=465
EMAIL_SERVER_PASSWORD='generated-app-password'
I'm running Twenty on a Dockge container on my Proxmox sever. It gives me the following errors:
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GoogleCalendarSyncJob] Error refreshing access token for connected account xxxxxxxxxxxxxxxxxxxxxxxxxxxx in workspace yyyyyyyyyyyyyyyyyyyyyyyy
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GoogleCalendarSyncJob] Error: Error refreshing access token: Request failed with status code 400
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GmailFullMessageListFetchJob] Error refreshing access token for connected account xxxxxxxxxxxxxxxxxxxxxxxxxxxx in workspace yyyyyyyyyyyyyyyyyyyyyyyy
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GmailFullMessageListFetchJob] Error: Error refreshing access token: Request failed with status code 400
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GoogleCalendarSyncJob] Error refreshing access token for connected account xxxxxxxxxxxxxxxxxxxxxxxxxxxx in workspace yyyyyyyyyyyyyyyyyyyyyyyy
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GoogleCalendarSyncJob] Error: Error refreshing access token: Request failed with status code 400
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GmailFullMessageListFetchJob] Error refreshing access token for connected account xxxxxxxxxxxxxxxxxxxxxxxxxxxx in workspace yyyyyyyyyyyyyyyyyyyyyyyy
twenty-worker-1 | [Nest] 34 - 06/05/2024, 10:07:35 PM ERROR [GmailFullMessageListFetchJob] Error: Error refreshing access token: Request failed with status code 400
I feel like it's an easy fix but I can't figure out what's going on. Please let me know if you need other info!
6 replies