e4dbe87fa1
Challenge 4 from "Call for projects" list
21 lines
712 B
Markdown
21 lines
712 B
Markdown
# Last email interaction
|
|
|
|
Updates Last interaction and Interaction status fields based on last email date
|
|
|
|
## Requirements
|
|
- twenty-cli `npm install -g twenty-cli`
|
|
- an `apiKey`. Go to `https://twenty.com/settings/api-webhooks` to generate one
|
|
|
|
## Setup
|
|
1. Add and synchronize app
|
|
```bash
|
|
twenty auth login
|
|
cd last_email_interaction
|
|
twenty app sync
|
|
```
|
|
2. Go to Settings > Integrations > Last email interaction > Settings and add required variables
|
|
|
|
## Flow
|
|
- Checks if fields are created, if not, creates them on fly
|
|
- Extracts the timedate of message and calculates the last interaction status
|
|
- Fetches all users and companies connected to them and updates their Last interaction and Interaction status fields |