What is published
Publishing goes from the ERP to Google: one event per deadline or appointment, created and then updated when the date or label changes in IRPEA.
Each event carries a deterministic identifier computed from the ERP item, so a replayed creation is rejected by Google instead of producing a duplicate.
When an item disappears from the ERP, for instance a filed obligation or a cancelled appointment, the matching event is deleted from Google Calendar.
Authentication and security
Google OAuth 2 authorisation is requested with the calendar.events scope, limited to events, and the refresh token is only kept on the server, sealed.
The “Calendar” setting is primary for the main calendar, or the identifier of a dedicated calendar if you prefer to keep deadlines apart from personal appointments.
Frequency
Publishing can be started by hand, and with automatic synchronisation the cron replays it at most once an hour, which is enough to track deadlines set days in advance.
What is not done
An event you delete yourself in Google is flagged as cancelled and never recreated, and events added in Google do not flow back into the ERP.
The three calendar sources
The connector publishes items falling between 30 days in the past and 400 days ahead, taken from three tables of the company file.
- Legal deadlines still to meet, upcoming, due or overdue, set as all-day events on their due date.
- ERP calendar events, except cancelled ones.
- Confirmed accounting firm client appointments, in Paris time.
What you see after each run
A content fingerprint for each item avoids resending what has not changed, and the log sums up every run as events created, updated, removed and unchanged, with a named list of items in error.
The procedure
Setup
Connect : The “Connect” button opens Google authorisation with the calendar.events scope.
Choose the calendar : Keep “primary” or paste the identifier of a dedicated calendar.