Populating JobType
Last updated
Was this helpful?
Last updated
Was this helpful?
Within the Entity Databoxes; check whether a Databox has already been created listing the details for the JobTypes. If this does not exist; create a Company Data Databox with the following details:
Group: This can be named as per your Databox grouping structure. We have named the Group MIS in this example
Name: We have named this JobTypeID to identify the purpose of this Databox when used in the script
Values: Enter the name and Values of the Job Type that you wish to add by clicking on the cells in the form.
Within the Entity Databoxes; check whether a Databox has been created for the JobType. If this does not exist; create a Databox with the following details:
Group: This can be named as per your Databox grouping structure. We have named the Group MIS in this example
Type: General
Name: We have named this JobType to identify the purpose of this Databox when used in the script
Description: This is so that a description can be given detailing the use of the Databox. This can be left blank if required.
XPath: Fault/JobType/text()
To add this to a script in order to pass the JobType back to MIS, please follow these instructions.
Within the script that you require the JobType to be passed, select Databox Read from the Item Type drop down list:
Navigate to the Company Data Databox created above and expand to show any code lines that have been created - in this example ResponsiveRepair
Drag this into the script. This will appear in the Script Step column
Select Databox Write from the Item Type drop down list:
Navigate to the Export Databox created above
Drag this into the script. This will appear in the Action column
Save the script.