Created function to run trigger script Created logic to pull table from catalog items / record producers Created interceptors for Fulfillment Steps and Triggers Cleaned forms and created policies to keep them clean
47 lines
1.8 KiB
XML
47 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><record_update sys_domain="global" table="sys_script_client">
|
|
<sys_script_client action="INSERT_OR_UPDATE">
|
|
<active>true</active>
|
|
<applies_extended>false</applies_extended>
|
|
<condition/>
|
|
<description/>
|
|
<field>catalog_item</field>
|
|
<global>true</global>
|
|
<isolate_script>true</isolate_script>
|
|
<messages/>
|
|
<name>Populate condition table</name>
|
|
<order/>
|
|
<script><![CDATA[function onChange(control, oldValue, newValue, isLoading, isTemplate) {
|
|
if (isLoading || newValue === '') {
|
|
return;
|
|
}
|
|
|
|
//Type appropriate comment here, and begin script below
|
|
var ga = new GlideAjax("CoreClientUtils");
|
|
ga.addParam("sysparm_name", "getCatalogItemTargetTable");
|
|
ga.addParam("sysparm_catalogItemID", newValue);
|
|
ga.getXMLAnswer(function(answer){
|
|
console.log(answer);
|
|
if(answer){
|
|
g_form.setValue("condition_table", answer);
|
|
}
|
|
})
|
|
}]]></script>
|
|
<sys_class_name>sys_script_client</sys_class_name>
|
|
<sys_created_by>admin</sys_created_by>
|
|
<sys_created_on>2023-01-31 15:47:47</sys_created_on>
|
|
<sys_domain>global</sys_domain>
|
|
<sys_domain_path>/</sys_domain_path>
|
|
<sys_id>1536e9ac973021105838bfb3f153afb5</sys_id>
|
|
<sys_name>Populate condition table</sys_name>
|
|
<sys_overrides/>
|
|
<sys_package display_value="Fulfilment Automater" source="x_355681_fa">c04afa629713111093a8337e6253af6d</sys_package>
|
|
<sys_policy/>
|
|
<sys_scope display_value="Fulfilment Automater">c04afa629713111093a8337e6253af6d</sys_scope>
|
|
<sys_update_name>sys_script_client_1536e9ac973021105838bfb3f153afb5</sys_update_name>
|
|
<table>x_355681_fa_service_catalog_trigger</table>
|
|
<type>onChange</type>
|
|
<ui_type>10</ui_type>
|
|
<view/>
|
|
</sys_script_client>
|
|
</record_update>
|