Ticket #3144: Trac_3144.sql

File Trac_3144.sql, 3.2 KB (added by Benjamin Haag, 10 months ago)

SQL used to add new email template.

Line 
1USE [training]
2GO
3
4DECLARE @return_value int,
5 @out_error_number int,
6 @out_email_template_id int
7
8EXEC @return_value = [dbo].[usp_GRINGlobal_Email_Template_Insert]
9 @out_error_number = @out_error_number OUTPUT,
10 @out_email_template_id = @out_email_template_id OUTPUT,
11 @title = N'Requestor Approval',
12 @category_code = N'RAP',
13 @email_from = N'gringlobal.orders@usda.gov',
14 @subject = N'Your Germplasm Request Has Been Reviewed',
15 @body = N'Germplasm Requester:
16<br />
17Your request [WOR ID#] has been initially reviewed. The request will now be reviewed at the genebank locations where the germplasm is managed.
18<br/>
19<p>
20 <strong>
21 Effective March 1, 2026, requesters are required to pay for shipping to receive plant germplasm from the NPGS.
22 Furthermore, all germplasm recipients outside of the United States must provide an import permit or letter of authority for their request.
23 NPGS staff will provide details to international requesters about submitting required documents.
24 </strong>
25</p>
26<p>
27 Please note that the U.S. National Plant Germplasm System (NPGS) has multiple genebank sites that maintain specific crops.
28 Each site maintaining germplasm which you requested will review their portion of your request.
29 They will then proceed to either process the request, cancel it, or email you for additional information.
30 <strong>
31 When a request impacts multiple genebank sites, you will need to provide the respective documents as
32 requested by each genebank location.
33 </strong>
34</p>
35<p>
36 The NPGS genebank staff will provide the information you need to obtain a prepaid shipping label / waybill,
37 such as the weight and dimensions of the parcel. <strong>When requested by the staff, provide the prepaid label or
38 waybill within three working days.</strong> A timely response is particularly important for international shipments
39 because many countries require the parcel to arrive at the port of entry promptly (as few as 14 days)
40 after a phytosanitary certificate (obtained by the NPGS) accompanying the shipment is issued.
41</p>
42<p>
43 Delays in providing the shipping label/ international waybill increase the likelihood of problems
44 such as the parcel being rejected by inspectors upon arrival or the NPGS needing to
45 obtain a replacement phytosanitary certificate.
46</p>
47<p>
48 As the fulfillment process progresses, you can track the status via the Order’s History. Logged into GRIN-Global,
49 select <strong>Your Profile</strong>, <strong>Your Web Request History</strong>, and then the web request number (<strong>WOR ID#</strong>).
50 As each genebank site proceeds with the request, <strong><i>they separately generate a 6-digit order number</i></strong> for the respective accessions when appropriate.
51</p>
52For all future correspondence regarding this request, please communicate with the sites directly and always reference the 5-digit web request number.
53
54 Thank you for your understanding / best wishes for your project.',
55 @created_by = 1
56
57SELECT @out_error_number as N'@out_error_number',
58 @out_email_template_id as N'@out_email_template_id'
59
60SELECT 'Return Value' = @return_value
61
62GO