(2024.2) Generate Service ID Range Event
The Generate Service ID Range Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.
Generate Service ID Range
/** * Event: Service ID range generation requested * Listener Class: Application_Model_Service_Service * Listener Method: generateRangeOfServices */ PCR_Event::attachDb( 'service-id-generation', ['Application_Model_Service_Service' => 'generateRangeOfServices'] ); PCR_Event::trigger( 'service-id-generation', [ "serv_cat_type" => "2", //RecID of selected Service Catalog "RECID" => "addNew", "serviceNumberStart" => "1000000001", //Start of range entered "serviceNumberFinish" => "1000000010", //End of range entered "udf" => [ "1" => [ "VALUE" => null, "DATATYPE" => "INTEGER" ], "51" => [ "VALUE => null, "DATATYPE" => "INTEGER" ], "148" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ], "164" => [ "VALUE" => null, "DATATYPE" => "INTEGER" ], "208" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ], "209" => [ "VALUE" => null, "DATATYPE" => "INTEGER" ], "210" => [ "VALUE" => null, "DATATYPE" => "INTEGER", "udf-210-VALUE_display" => null ], "211" => [ "VALUE" => null, "DATATYPE" => "INTEGER" ], "212" => [ "VALUE" => null, "DATATYPE" => "CLOB" ], "225" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ], "226" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ], "255" => [ "VALUE" => null, "DATATYPE" => "VARCHAR" ] ], "serv_cat_type_display" => "1FB Business Line", //Service Catalog "pools" => [], "save-new" => "true", "serviceTypeName" => "PHONE", "generateNum" => 10, "contact" => "216121", //RecID of Contact that initiated the Service ID generation "comment" => "This is a comment", "eventBroadcastBy" => "216121", "eventBroadcastTime" => "Oct 4, 2022, 10:32 am", "eventBroadcastDayofWeek" => "2", "eventBroadcastHourMin" => "1032", ] );