MemberJunction / MJ

Main MemberJunction Repository
https://docs.memberjunction.org/
ISC License
4 stars 0 forks source link

Pull back Messaging Delivery/Open/Click Data into MJ #527

Open AN-BC opened 1 month ago

AN-BC commented 1 month ago

We have two relevant tables in the database right now CommunicationRun and CommunicationLog will use Run and Log for short here to make it simpler.

We will add a new table called CommunicationLogEvent which will store "events" that are available from the provider such as delivered, opened, and click among others that we might receive. Providers of various types might have different events. Some won't support all of these events, some will support other kinds. We have a database schema to support this as noted here.

Fields in the CommunicationLogEvent table will be:

We will add a new column to the CommunicationLog table as follows

All New Tables will have TrackChanges = 1 which will result in the typical CreatedAt/UpdatedAt cols being auto-added when CodeGen runs

You will need to add CommunicationProviderEventType records to the system for SendGrid and MS365 providers.

AN-BC commented 1 month ago

@JS-BC I updated this quite a bit just now to give you the needed design info to execute this. @cadam11 and @hiltongr if you have any comments, please share them in the next day or so.