Introduction
All of the email templates available on your system may be referenced by the following table of ID’s:
Email Template | ID |
Quote details | 1 |
Reset password | 2 |
Invoice | 3 |
Payment receipt | 8 |
Job acceptance | 13 |
User creation | 17 |
Inventory purchase order | 20 |
Outsource purchase order | 21 |
Outsource request | 23 |
Sale item out of stock | 26 |
Proof | 29 |
Quote approval | 30 |
PrintIQ_ProductionIntegration_JobCreated_Email | 31 |
Quote approval request | 32 |
Proof - Contact account manager | 33 |
Artwork replacement | 35 |
Proof - Response | 37 |
Job dispatched | 41 |
Production integration - preflight success | 50 |
Production integration - preflight warnings | 69 |
Order AM receipt | 100 |
RFQ | 150 |
Quote reminder | 151 |
Production Integration mandatory parameters
As with other Production Integration API calls, you must reference the following Parameters
Production Integration supported Systems
System | Value |
Enfocus SWITCH | EnfocusSwitchScript |
Kodak Prinergy Connect | prinergy |
Esko Automation Engine | esko |
SEND_EMAIL EventType
function sendSoap {
var resp = SOAP.request[“http://yourprintiq.com/WebService/ProductionIntegration.asmx”], {
“http://iq.co.nz/:RunEvent” : {
System: “EnfocusSwitchScript”,
EventType: “SEND_EMAIL”,
SystemData: {"TemplateID":35,"FromEmail":"john@iq.co.nz","ToEmail":"sue@iqaustralia.com","CCEmail":"","BCCEmail":""},
JobRef: “J012345”,
FileRefs: “J012345_Artwork file_1.pdf”,
EventText: ““
}
},”http://iq.co.nz/RunEvent”);
var resu = resp[“http://iq.co.nz/:RunEventResponse”][“RunEventResult”];
if (resu !== “Success”) {
throw new Error(“Invalid response from web service: “ + resu);
}
return resu;
}