API (SOAP) – Send Email

API (SOAP) – Send Email


Introduction


You may use SOAP calls to send emails from printIQ. Email templates are configured via Admin / Customise, then the link to Emails


 

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

  • System
  • EventType
  • JobRef
  • FileRefs

Production Integration supported Systems


The following table lists the Systems and their Value:

 

System

Value

Enfocus SWITCH

EnfocusSwitchScript

Kodak Prinergy Connect

prinergy

Esko Automation Engine

esko

 

SEND_EMAIL EventType


The EventType is ‘SEND_EMAIL’. The code for the EventType must reference the corresponding email template ({“TemplateID”}), address for ‘From’ and 'To' ({“FromEmail”,<value>,”ToEmail”:<value>}), and any ‘CC’ or ‘BCC if applicable ({“CCEmail”:<value>, “BCCEmail”:<value>}).


The following code will send the Artwork Replacement email template:

 

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;

 

      }

 

 


    • Related Articles

    • API (SOAP) – Event Types

      Introduction When sending SOAP calls from a third party system to printIQ, you need to specify a System, an Event Type, and Job Number with corresponding File Reference. Production Integration supported Systems The following table lists the Systems ...
    • API (SOAP) – Job XML highlights

      Introduction The printIQ Job XML contains many elements, attributes and values to allow automated processing by supported production integration systems. As your third party system receives the Job XML from printIQ, use the below tags as guides to ...
    • API (SOAP) – Update Job Orientation

      Introduction You may use SOAP to call a production event that completes the edit job process, whereby allowing the job finish size to be altered. By incorporating this production event before or during a preflight check, you may avoid validation ...
    • API (SOAP) – Status Update

      Introduction By referencing the Production Status ID’s, you may use SOAP calls to update a Job’s Production Status. Production Statuses are located under Admin / Configure Factory / Terminology (under General). Production Status ID's The following ...
    • API (SOAP) – Run Timing Event

      Introduction   Within the print IQ application there is a SOAP web service called ProductionIntegration This service exposes an entry point to allow external applications to add timing to an operation on a section or job. The method in the web ...