This is an old revision of the document!
Story: I want to send a list of vacancies or shifts to a candidate via notifications and the notification should contain a deep link that when they click on it it opens a web page to say that they have been added to the shortlist, update their progress status on the vacancy shortlist, add them to the shift shortlist and log a contact event.
There are a number of elements that need to be in place, expand the sections below for details on what needs to be set up.
Shortlist/Progress States
Suitable shortlist states need to be set up in Maintenance - Agency Setup - Progress States and if you are sending shift details Maintenance - Temps Setup - Shift Progress States.
Hub
IQXHub must be active and the RunJob Schedule Group and RunJob UserID should be set, the UserId is used as the consultant linked to the Progress and Shift Progress
Elements for the Notification
Boiler Plate Text - If you want to send individual lines for each shift then you will need a Boiler Plate Text item set up called SHIFTLINES with a type of Notification. It is HTML code and will refer to a Custom Merge Field. Only required for sending shift lines.
_literal_<tr><td>{SHF_DATE}</td><td>{SHF_FROM}</td> <td>{SHF_TO} </td><td> <a href=“http://localhost:54000/iqxjob/public_670.xml?personid={APP_PERSONID}&{SHF_JSONQUERYBOOK}&templateid={LET_TEMPLATEID}&displaytemplateid=HTMLTEST”><font color=“#FF4D4D”>Accept Booking</font></a><u><font color=“#FF4D4D”><<</font></u></td></tr>
The example should be amended so that 'localhost:54000' is changed to the address of the hub that will run the job and 'public_670.xml' is changed to the name of the job that is being run.
Custom Merge Field - again only required if you are sending individual shift information. The category should be Shift call it JSONQUERYBOOK and the SQL should be 'SELECT string('vacancyid=',vacancyid,'&tempshiftplanid=', tempshiftplanid)
from tempshiftplan where tempshiftplanID = #' tick for Notifications only.
Sample Notification
Two notifications are required one to create the web page and another that will be selected from the notifications button.
The notification that is only called from another notification that is used to draw a web page is called HTMLTEST (this is the name specified in the custom merge field if you are using it and the subsequent notification template), type of Job. Note it is not called from a form , the contents of the web page can be customised to each agencies requirements.