Opened 3 years ago

Last modified 2 years ago

#2839 assigned enhancement

Develop automated email messaging for the APR process

Reported by: Lisa Burke Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Data Updates Version: N/A
Severity: Keywords: APR reminder email
Cc: Database Engine: N/A
Operating System: N/A

Description

Email to requestor triggered 3 months post physical shipment of germplasm request (needs to take into account materials being shipped from Beltsville). This email should request information about the condition of germplasm and a reminder that the NPGS would benefit from data produced from their research. Also, a date by which they anticipate completion of research and/or publication of research.
Second email triggered by the date provided in the first email (completion of research and/or publication date) asking for the requestor to upload the information in the order history.

Attachments (1)

email trigger.docx​ (279.3 KB ) - added by Lisa Burke 3 years ago.
email trigger

Download all attachments as: .zip

Change History (7)

by Lisa Burke, 3 years ago

Attachment: email trigger.docx​ added

email trigger

comment:1 by Kurt Endress, 3 years ago

Resolution: → invalid
Status: new → closed

This can not be done with a GG DataTrigger. Triggers fire when data goes into the database, not when a timer expires. You'd need a whole new category of scheduled events to be added to GG. That's much more than a new trigger.

comment:2 by Lisa Burke, 3 years ago

Well, thanks for closing the ticket. I'll have to look for help some other way.

comment:3 by Lisa Burke, 3 years ago

Component: Trigger → Database, Data Updates
Resolution: invalid
Status: closed → reopened

KK suggested that I change the owner to BH -
"This ticket is a database ticket, so it should go to Benjamin. Request a sql event. He'll need more information, and probably will need to modify whatever table to hold the dates for when the emails should be sent."

comment:4 by Lisa Burke, 3 years ago

Owner: changed from Kurt Endress to Benjamin Haag
Status: reopened → assigned

comment:5 by Benjamin Haag, 3 years ago

Lisa -- have ideas on the implementation of this.

comment:6 by Benjamin Haag, 2 years ago

In general, this will involve:
1) a stored procedure that retrieves orders based on status and date/date range
2) a CLR function that handles the actual email send (given past problems with SQL Server mail)
2) a SQL server task scheduled to run nightly (potentially less often, to be worked out).

Note: See TracTickets for help on using tickets.