User Tools

Site Tools


After Subscribe Script


This script will execute right after a record has been subscribed with an insert, update or delete. This section expects server side javascript. Within your script you have access to the following variables:

Variable Description
current This represents the record that was inserted, updated or deleted, the destination record
qcurrent This represents the record within the psp_in_message table, the record pulled in from the message bus. With this you can use it's key value to determine the source
qcurrentxml This variable holds the xml object of the inbound record
xml_util This variable holds an xml utility for working with qcurrentxml
subscribe_gr This variable holds the GlideRecord object corresponding to the subscribe record configuration itself (i.e. you can use subscribe_gr.getTableName() to access the name of the table you're trying to insert)
after_subscribe_script.txt · Last modified: 2018/08/01 16:28 by angela.zhang