Script not working for November 2014 update
Content
Hi,
I appreciate all help. In our November 2014 update environment our incident_update script (as seen attached) is not working. The same script is working in the August 2014 release. It should be a simple script that prevents "main"-incidents to close if its "sub"-incidents is unresolved. It is as if the script is not even running. It can be deployed no problem but is not functioning, Any suggestions?
Thanks,
Mikael
Version
November 2014Code Snippet
<? /* * CPMObjectEventHandler: incident_update * Package: RN * Objects: Incident * Actions: Update * Version: 1.2 */ use \RightNow\Connect\v1 as RNCPHP; use \RightNow\CPM\v1 as RNCPM; class incident_update implements RNCPM\ObjectEventHandler { public static function apply( $run_mode, $action, $obj, $n_cycles ) { try{ // If Incident 1 status is Closed if($obj->StatusWithType->Status->ID==2 && $obj->CustomFields->main_incident==1 ) // If
Tagged:
0