Document toolboxDocument toolbox

(v1) .Triggerable Events List v2022.2

Bill Approve Event

The Bill Approve Event can be triggered using (v1) Custom Logic. The following parameters are Required to execute the Event.

Bill Approve
/**
* Event: Approve Bill 
* Listener Class: Application_Model_Bill_Bill
* Listener Method: eventApprove
*/  

PCR_Event::attachDb(
    "approve-bill",
    ["Application_Model_Bill_Bill" => "eventApprove"]
);
PCR_Event::trigger(
    "approve-bill",
	[
	    "BILLS_RECID" => "443",	//RecID of Bill being approved
	    "INVOICE_DATE" => "09\/30\/2022",

	    "eventBroadcastBy" => "216121",
	    "eventBroadcastTime" => "Sep 30, 2022, 10:26 am",
	    "eventBroadcastDayofWeek" => "5",
	    "eventBroadcastHourMin" => "1026",
	]	
);

Bill Coordinator E-mail

The Bill Coordinator E-mail Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Bill Coordinator E-mail
/**
* Event: Bill coordinator email
* Listener Class: Application_Model_Bill_Bill
* Listener Method: eventGenerateEmail
*/

PCR_Event::attachDb(
    "generate-email",
    ["Application_Model_Bill_Bill" => "eventGenerateEmail"]
);
PCR_Event::trigger(
    "generate-email", 
 	[
		"billRecid" => "443", 						//RecID of Bill E-mail is about
		"role" => "5", 								//RecID of Coordinator Role
		"subject" => "Billing Transactions for August 1, 2022 - August 31, 2022", //Subject of E-mail
		"emailBody" => "Billing E-mail Test", 		//Body of E-mail
		"RECID" => "443",							//RecID of Bill E-mail is about
		"reportOptions" => [],
		"contact" => "216121", 						//RecID of Contact that initiated the E-mail process 

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 30, 2022, 10:31 am",
		"eventBroadcastDayofWeek" => "5",
		"eventBroadcastHourMin" => "1031",

	]
);

Bill Delete

The Bill Delete Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

BIll Delete
/**
* Event: Delete Bill
* Listener Class: Application_Model_Bill_Bill
* Listener Method: eventDeleteBill
*/

PCR_Event::attachDb(
    "delete-bill",
    ["Application_Model_Bill_Bill" => "eventDeleteBill"]
);
PCR_Event::trigger(
    "delete-bill",  	
	[
		"contact" => "216121",	//RecID of Contact that initiated the Bill Deletion
		"BILLS_RECID" => "445", //RecID of Bill being run

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 30, 2022, 10:20 am",
		"eventBroadcastDayofWeek" => "5",
		"eventBroadcastHourMin" => "1020",
	] 
);

Bill Generate

The Bill Generate Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Bill Generate
/**
* Event: Generate Bill
* Listener Class: Application_Model_Bill_BillDetails
* Listener Method: eventGenerateBill
*/

PCR_Event::attachDb(
    "generate-bill",
    ["Application_Model_Bill_BillDetails" => "eventGenerateBill"]
);
PCR_Event::trigger(
    "generate-bill",
	 [
		"start_date" => "2022-11-01 00:00:00",
		"end_date" => "11/30/2022",
		"next_run_date" => null,
		"test_bill" => "0",
		"RECID" => "addNew",
		"contact" => "216121", //RecID of Contact that initiated the Event
		"LISTENER_FAIL_METHOD" => "eventBillFailed",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 6, 2022, 11:44 am",
		"eventBroadcastDayofWeek" => "4",
		"eventBroadcastHourMin" => "1144",
	] 
);

Charge Catalog Status Change

The Charge Catalog Status Change Events can be triggered using Custom Logic. When a Status is changed on a Charge Catalog, a prompt gives the option to select a Specified Date or Date To Last Billed. Both options can be generated using Custom Logic. The following parameters are Required to execute each Event.

Date to Last Billed

Date to Last Billed
/**
* Event: Available Charges Bulk Update requested
* Listener Class: Application_Model_ChrgCatalog_ChrgCatalog
* Listener Method: eventStopCharges
*/

PCR_Event::attachDb(
    "stop-charges",
    ["Application_Model_ChrgCatalog_ChrgCatalog" => "eventStopCharges"]
);
PCR_Event::trigger(
    "stop-charges", 
	[ 		
		"chgCatalogRecids" => 1761,		//RecID of Charge Catalog selected
		"stopDate" => "12\/14\/2022", 	//Date selected when stopping charges
		"oldAmount" => "10.00000",
		"newAmount" => "5.00",
		"effective" => "backdate",
		"contact" => "216121",			//RecID of Contact that initiated update

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 29, 2022, 3:29 pm",
		"eventBroadcastDayofWeek" => "4",
		"eventBroadcastHourMin" => "1529",   
	]
);

Specified Date

Specified Date
/**
* Event: Available Charges Bulk Update requested
* Listener Class: Application_Model_ChrgCatalog_ChrgCatalog
* Listener Method: eventStopCharges
*/

PCR_Event::attachDb(
    "stop-charges",
    ["Application_Model_ChrgCatalog_ChrgCatalog" => "eventStopCharges"]
);
PCR_Event::trigger(
    "stop-charges",
	[ 		
		"chgCatalogRecids" => 1761,	 	//RecID of Charge Catalog selected
	 	"stopDate" => "12\/14\/2022",	//Date selected when stopping charges
		"oldAmount" => "15.00000",
		"newAmount" => "10.00",
		"effective" => "today", 
		"contact" => "216121",			//RecID of Contact that initiated the event 

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 29, 2022, 3:22 pm",
		"eventBroadcastDayofWeek" => "4",
		"eventBroadcastHourMin" => "1522",   
	]
);

Contact Replacement

The Contact Replacement Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Contact Replacement
/**
* Event: System-wide Contact Replacement
* Listener Class: Application_Model_Contact_Contact
* Listener Method: eventReplaceContact
*/  

PCR_Event::attachDb(
    "replace-contact",
    ["Application_Model_Contact_Contact" => "eventReplaceContact"]
);

PCR_Event::trigger(
    "replace-contact",
    [      
        "contact" => "216121",     //RecID of Contact that initiated the replacement
        "contactRecid" =>
        [
            "216125"            //RecID of Contact that is replacing
        ],
        "replaceContactRecid" =>
        [
            "216121"            //RecID of Contact getting replacing
        ],
        "comment" => "This is a comment",
        "deleteContact" => true,
        "users_recid" => "1217",   //RecID of User that initiated the replacement
 
        "eventBroadcastBy" => "216121",
        "eventBroadcastTime" => "Oct 3, 2022, 2:47 pm",
        "eventBroadcastDayofWeek" => "1",
        "eventBroadcastHourMin" => "1447",        
    ]
);

Department Replacement

The Department Replacement Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Department Replacement
/**
* Event: System-wide Department Replacement
* Listener Class: Application_Model_DeptHierarchy_DeptHierarchy
* Listener Method: eventReplaceDeptHierarchy
*/

PCR_Event::attachDb(
    'department-replacement',
    ['Application_Model_DeptHierarchy_DeptHierarchy' => 'eventReplaceDeptHierarchy']
);
PCR_Event::trigger(
    'department-replacement',
  	[ 		
		"contact" => "216121", 	//RecID of Contact that initiated the replacement
		"deptRecid" =>
		[
			"3638" 				//RecID of Department getting replaced
		],
		"replaceDeptRecid" =>
		[
			"3507" 				//RecID of Department that is replacing 
		],
		"deleteDept" => true, 
		"comment" => "This is a comment",
		"users_recid" => "1217", 	//RecID of User that initiated the replacement

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 2:21 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1421",   
	]
);

Equipment Bulk Update

The Equipment Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Equipment Bulk Update
/**
* Event: Equipment Bulk Update requested
* Listener Class: Application_Model_Equipment_Equipment
* Listener Method: eventBulkUpdate
*/

PCR_Event::attachDb(
    "bulk-update",
    ["Application_Model_Equipment_Equipment" => "eventBulkUpdate"]
);
PCR_Event::trigger(
    "bulk-update", 
	[  		
		"equipment_type_enabled" => "0",
		"assoc_service_enabled" => "0",
		"cabling_eqp_type_enabled" => "1",
		"cabling_eqp_type" => "37",
		"location_enabled" => "0",
		"status_enabled" => "0",
		"condition_enabled" => "0",
		"contact_owner_enabled"=> "0",
		"dept_hier_owner_enabled" => "0",
		"gla_enabled" => "0",
		"war_date_enabled" => "0",
		"billable_enabled" => "0",
		"private_enabled" => "0",
		"host_name_enabled" => "0",
		"lan_name_enabled" => "0",
		"dhcp_enabled" => "0",
		"RECID" => "659200", //RecID of selected Equipment
		"confirmed" => true,
		"comment" => "This is a comment",
		"effective" => null,
		"users_recid" => "1217",
		"contact" => "216121",
		"selectedEquipmentRecids" =>
		[
			"659200", //RecID of selected Equipment
			"658688" //RecID of selected Equipment
		],
		"selectedEquipmentFilters" => [],
		"isLocationRequired" => false,

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 3:00 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1500",   	
	]
);

Generate Service ID Range

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",   
		]
);

GLA Replace

The GLA Replace Events can be triggered using Custom Logic. When a GLA is replaced a prompt gives Users the option to select Effective Today or Date To Last Billed. Both options can be generated using Custom Logic. The following parameters are Required to execute each Event.

Effective Today

Effective Today
/**
* Event: GLA Replacement requested
* Listener Class: Application_Model_Gla_Gla
* Listener Method: eventReplaceGla
*/

PCR_Event::attachDb(
	"replace-gla", 
	["Application_Model_Gla_Gla" => "eventReplaceGla"]
);
PCR_Event::trigger(
	"replace-gla", 
	[
	    "contact" => "12345",         //RecID of Contact that initiated the GLA replace
    	"users_recid" => "456",       //RecID of User associated with Contact that initiated the GLA replacement
	    "glaRecid" => [1111],         //RecID of User associated with Contact that initiated the GLA replacement
    	"replaceGlaRecid" => "2222",  //RecID of Contact that initiated the GLA replace 
	 	"effective" => "today",       //Effective Date for Charge Updates
	    "setInactiveGla" => true,
	    "comment" => "This is a comment",

 		"eventBroadcastBy" => "12345",
		"eventBroadcastTime" => "Sep 30, 2022, 11:23 am",
		"eventBroadcastDayofWeek" => "5",
		"eventBroadcastHourMin" => "1123",
	 ]
);

Date to Last Billed

Date to Last Billed
/**
* Event: GLA Replacement requested
* Listener Class: Application_Model_Gla_Gla
* Listener Method: eventReplaceGla
*/

 PCR_Event::attachDb(
	"replace-gla", 
	["Application_Model_Gla_Gla" => "eventReplaceGla"]
);
PCR_Event::trigger(
	"replace-gla",  	
	[  	
		"contact" => "216121", 	   	//RecID of Contact that initiated the GLA replace
		"glaRecid" => [3],         	//RecID of GLA getting replaced
		"replaceGlaRecid" => [22],  //RecID of the replacement GLA 					
		"effective" => "backdate",  //Button Select when saving changes made
		"comment" => "This is a comment",
		"setInactiveGla" => true,
		"users_recid" => "1217", 	//RecID of User associated with Contact that initiated the GLA replacement

	    "eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 30, 2022, 11:34 am",
		"eventBroadcastDayofWeek" => "5",
		"eventBroadcastHourMin" => "1134",
	]   
);

IP Range Bulk Update

The IP Range Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

IP Range Bulk Update
/**
* Event: IP Address Bulk Update requested
* Listener Class: Core_Model_IpAddress
* Listener Method: eventBulkUpdate
*/

PCR_Event::attachDb(
    "bulk-update",
    ["Core_Model_IpAddress" => "eventBulkUpdate"]
);
PCR_Event::trigger(
    "bulk-update", 
	[ 		
		"status" => "163",
		"set_protocol" => "ipv4",
		"octet1" => "10",
		"octet2" => "126",
		"octet3" => "112",
		"octet4" => "32",
		"octet5" => null,
		"octet6" => null,
		"octet7" => null,
		"octet8" => null,
		"bulkOctet1" => "10",
		"bulkOctet2" => "126",
		"bulkOctet3" => "112",
		"bulkOctet4" => "36",
		"bulkOctet5" => null,
		"bulkOctet6" => null,
		"bulkOctet7" => null,
		"bulkOctet8" => null,
		"description" => "test",

		"RECID" => "addNew",

		"contact" => "216121", 		//RecID of Contact that initiated the update
		"confirmed" => true,
		"ipAddress" => "10.126.112.32",
		"ip4amount" => 5,

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 4, 2022, 1=>19 pm",
		"eventBroadcastDayofWeek" => "2",
		"eventBroadcastHourMin" => "1319",  
	]
);

Location Demolish

The Location Demolish Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Location Demolish
/**
* Event: Location Demolish
* Listener Class: Application_Model_Location_Location
* Listener Method: eventDemolish
*/
//In this code example, a building with 10 floors is demolished and one of the floors has 10 rooms.

PCR_Event::attachDb(
    "location-demolish",
    ["Application_Model_Location_Location" => "eventDemolish"]
);
PCR_Event::trigger(
    "location-demolish", 
   [
	"recid" => 331648, //RecID of Parent location getting Demolished
	"recids" =>
	[
		"331648", 	//RecID of Parent location getting Demolished
		"331649", 	//RecID of location getting Demolished
		"331699", 	//RecID of location getting Demolished
		"331700", 	//RecID of location getting Demolished
		"331701", 	//RecID of location getting Demolished
		"331702", 	//RecID of location getting Demolished
		"331703", 	//RecID of location getting Demolished
		"331704", 	//RecID of location getting Demolished
		"331705", 	//RecID of location getting Demolished
		"331706", 	//RecID of location getting Demolished
		"331707", 	//RecID of location getting Demolished
		"331708", 	//RecID of location getting Demolished
		"331658", 	//RecID of location getting Demolished
		"331650", 	//RecID of location getting Demolished
		"331651", 	//RecID of location getting Demolished
		"331652", 	//RecID of location getting Demolished
		"331653", 	//RecID of location getting Demolished
		"331654", 	//RecID of location getting Demolished
		"331655", 	//RecID of location getting Demolished
		"331656", 	//RecID of location getting Demolished
		"331657" 	//RecID of location getting Demolished
	],
	"comment" => "This is a comment",

	"eventBroadcastBy" => "216121",
	"eventBroadcastTime" => "Oct 3, 2022, 2:04 pm",
	"eventBroadcastDayofWeek" => "1",
	"eventBroadcastHourMin" => "1404",
	]
);

Pairs/Strands Bulk Update

The Pairs/Strands Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Pairs/Strands Bulk Update
/**
* Event: Pairs/Strands Bulk Update requested
* Listener Class: Cabling_Model_PairStrand
* Listener Method: eventBulkRange
*/

//*NOTE* Only triggered if a change affect more than 100 pair/strands

PCR_Event::attachDb(
    "ps-bulk-update",
    ["Cabling_Model_PairStrand" => "eventBulkRange"]
);
PCR_Event::trigger(
    "ps-bulk-update", 
	[
	"type" => "Pairs\/Strands",
	"method" => "savePairStrand",
	"params" =>
	[
		"from_name" => "FT-Bulk pair\/strands",
		"update_end_points" => "0",
		"low_pair" => "1",
		"high_pair" => "120",
		"multiple" => "0",
		"description" => null,
		"length" => null,
		"destEqpDesc" => "2018-b3",
		"destEqpLoc" => "Washington DC  1455 Pennsylvania Ave NW : OC604X  1125",
		"modified_by" => "Frank",
		"modified_date" => "10\/05\/2022 13:16:08",
		"origEqp_display" => "q1",
		"destEqp_display" => "q6",
		"form-action" => "save",
		"bulkType" => "update",
		"FROM_EQUIPMENT_RECID" => "698112",
		"TO_EQUIPMENT_RECID" => "698117",
		"PAIR_STATUS_LISTS_RECID" => "188",
		"CABLES_RECID" => "5516",
		"confirmed" => true
	],
	"formFieldKey" => 
	[
		"CABLES" =>
		[
			"from_name" => "NAME",
			"update_end_points" => "UPDATE_END_POINTS",
			"modified_by" => "MODIFIED_BY",
			"modified_date" => "MODIFIED_DATE",
		],
		"PAIRS_STRANDS" =>
		[
			"multiple" => "MULTIPLE",
			"description" => "DESCRIPTION",
			"length" => "LENGTH",
			"FROM_EQUIPMENT_RECID" => "FROM_EQUIPMENT_RECID",
			"PAIR_STATUS_LISTS_RECID" => "PAIR_STATUS_LISTS_RECID",
			"CABLES_RECID" => "CABLES_RECID"
		],
		"PAIRS_STRANDS_TO_EQP" => 
		[
			"destEqp" => "TO_EQUIPMENT_RECID",
			"destLow" => "TO_PORTS_PINS_LENS_RECID"
		],
		"RECID" => "RECID"
	],
	"prefixRange" =>
	[
		"1",
		"2",
		"3",
		"4",
		"5",
		"6",
		"7",
		"8",
		"9",
		"10",
		"11",
		"12",
		"13",
		"14",
		"15",
		"16",
		"17",
		"18",
		"19",
		"20",
		"21",
		"22",
		"23",
		"24",
		"25",
		"26",
		"27",
		"28",
		"29",
		"30",
		"31",
		"32",
		"33",
		"34",
		"35",
		"36",
		"37",
		"38",
		"39",
		"40",
		"41",
		"42",
		"43",
		"44",
		"45",
		"46",
		"47",
		"48",
		"49",
		"50",
		"51",
		"52",
		"53",
		"54",
		"55",
		"56",
		"57",
		"58",
		"59",
		"60",
		"61",
		"62",
		"63",
		"64",
		"65",
		"66",
		"67",
		"68",
		"69",
		"70",
		"71",
		"72",
		"73",
		"74",
		"75",
		"76",
		"77",
		"78",
		"79",
		"80",
		"81",
		"82",
		"83",
		"84",
		"85",
		"86",
		"87",
		"88",
		"89",
		"90",
		"91",
		"92",
		"93",
		"94",
		"95",
		"96",
		"97",
		"98",
		"99",
		"100",
		"101",
		"102",
		"103",
		"104",
		"105",
		"106",
		"107",
		"108",
		"109",
		"110",
		"111",
		"112",
		"113",
		"114",
		"115",
		"116",
		"117",
		"118",
		"119",
		"120"
	],
	"rangeSize" => "120",
	"comment" => "This is a comment",
	"users_recid" => "1217",
	"contact" => "216121",
	"cronEvent" => true,
	]
);

PPL Bulk Update


PPL Bulk Update Event
/**
* Event: Ports/Pins/Lens Bulk Update requested
* Listener Class: Cabling_Model_PortsPinsLens
* Listener Method: eventBulkRange
*/
 
//*NOTE* Can only be triggered on the the PPL Range form when a change affects more than 100 Pairs/Strands.
//example: Create over a hundred new PPLs on a piece of equipment using the PPL range form.
 
 
PCR_Event::attachDb(
    "ppl-bulk-update",
    ["Cabling_Model_PortsPinsLens" => "eventBulkRange"]
);
PCR_Event::trigger(
    "ppl-bulk-update",    
    [      
        [
        "type" => "Ports\/Pins\/Lens",
        "method" => "savePPL",
        "params" =>
        [
            "RECID" => "addNew",
            "status" => "188",
            "multiple" => "0",
            "side" => "207",
            "speed" => null,
            "ip4_address" => null,
            "ip4_subnet_mask" => null,
            "ip6_address" => null,
            "ip6_subnet_mask" => null,
            "udf" =>
        [
                "141" =>
                [
                    "VALUE" => null,
                    "DATATYPE" => "VARCHAR"
                ],
                "146" =>
                [
                    "VALUE" => "0",
                    "DATATYPE" => "BOOL"
                ],
                "165" =>
                [
                    "VALUE" => null,
                    "DATATYPE" => "INTEGER"
                ]      
        ],
            "vlan_display" => null,
            "backConnectEqp_display" => null,
            "bulkType" => "create",
            "confirmed" => true
        ],
        "formFieldKey" =>
            [
            "PORTS_PINS_LENS" =>
            [
                "RECID" => "RECID",
                "status" => "PAIR_STATUS_LISTS_RECID",
                "multiple" => "MULTIPLE",
                "side" => "PORT_SIDE_LISTS_RECID",
                "speed" => "PORT_SPEED_LISTS_RECID",
                "ip4_address" => "IP4_ADDRESS",
                "ip4_subnet_mask" => "IP4_SUBNET_MASK",
                "ip6_address" => "IP6_ADDRESS",
                "ip6_subnet_mask" => "IP6_SUBNET_MASK"
            ],
            "RECID" => "RECID"
            ],
        "dialogData" => null,
        "prefixRange" =>
        [
            "01",
            "02",
            "03",
            "04",
            "05",
            "06",
            "07",
            "08",
            "09",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16",
            "17",
            "18",
            "19",
            "20",
            "21",
            "22",
            "23",
            "24",
            "25",
            "26",
            "27",
            "28",
            "29",
            "30",
            "31",
            "32",
            "33",
            "34",
            "35",
            "36",
            "37",
            "38",
            "39",
            "40",
            "41",
            "42",
            "43",
            "44",
            "45",
            "46",
            "47",
            "48",
            "49",
            "50",
            "51",
            "52",
            "53",
            "54",
            "55",
            "56",
            "57",
            "58",
            "59",
            "60",
            "61",
            "62",
            "63",
            "64",
            "65",
            "66",
            "67",
            "68",
            "69",
            "70",
            "71",
            "72",
            "73",
            "74",
            "75",
            "76",
            "77",
            "78",
            "79",
            "80",
            "81",
            "82",
            "83",
            "84",
            "85",
            "86",
            "87",
            "88",
            "89",
            "90",
            "91",
            "92",
            "93",
            "94",
            "95",
            "96",
            "97",
            "98",
            "99",
            "100",
            "101",
            "102",
            "103",
            "104",
            "105",
            "106",
            "107",
            "108",
            "109",
            "110",
            "111",
            "112",
            "113",
            "114",
            "115",
            "116",
            "117",
            "118",
            "119",
            "120",
            "121",
            "122",
            "123",
            "124",
            "125",
            "126",
            "127",
            "128",
            "129",
            "130",
            "131",
            "132",
            "133",
            "134",
            "135",
            "136",
            "137",
            "138",
            "139",
            "140",
            "141",
            "142",
            "143",
            "144",
            "145",
            "146",
            "147",
            "148",
            "149",
            "150"
        ],
        "suffixRange" => [],
        "backConnectPrefixRange" => [],
        "backConnectSuffixRange" => [],
        "rangeSize" => 150,
        "comment" => "",
        "users_recid" => "1217",
        "contact" => "216121",
 
        "eventBroadcastBy" => "216121",
        "eventBroadcastTime" => "Oct 4, 2022, 2:45 pm",
        "eventBroadcastDayofWeek" => "2",
        "eventBroadcastHourMin" => "1445",
 
        ]
  ]
);

Process Payment Batch

The Process Payment Batch Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Process Payment Batch
/**
* Event: Process Payment Batch 
* Listener Class: Application_Model_Payment_PaymentBatch
* Listener Method: eventProcessBatch
*/  

PCR_Event::attachDb(
	"process-payment-batch", 
	["Application_Model_Payment_PaymentBatch" => "eventProcessBatch"]
);
PCR_Event::trigger(
	"process-payment-batch", 
	[
		"BATCH_RECID" => "1",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 4, 2022, 10:08 am",
		"eventBroadcastDayofWeek" => "2",
		"eventBroadcastHourMin" => "1008",
	]
);

Service Bulk Update

The Service (v1) Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Service Bulk Update
/**
* Event: Service Bulk Update requested
* Listener Class: Application_Model_Service_Service
* Listener Method: eventBulkUpdate
*/  

PCR_Event::attachDb(
    "bulk-update",
    ["Application_Model_Service_Service" => "eventBulkUpdate"]
);
PCR_Event::trigger(
    "bulk-update", 
	[ 		
		"service_type_enabled" => "0",
		"location_enabled" => "0",
		"status_enabled" => "0",	 //Optional field. Event triggers and successfully runs but warning appears
		"service_host_enabled" => "0",
		"sla_enabled" => "0",
		"contact_owner_enabled" => "0",
		"dept_hier_owner_enabled" => "0",
		"gla_enabled" => "0",
		"reference_enabled" => "0",
		"company_id_enabled" => "0",
		"rating_group_enabled" => "0",
		"pools_enabled" => "0",
		"billable_enabled" => "1",
		"billable" => "1",
		"directory_enabled" => "0", //Optional field. Event triggers and successfully runs but warning appears   
		"essential_enabled" => "0", //Optional field. Event triggers and successfully runs but warning appears
		"report_911_enabled" => "0", //Optional field. Event triggers and successfully runs but warning appears
	   	"RECID" => "402768",
		"pools" => [],
		"save-close" => "true",
		"dialogCallback" => true,
		"confirmed" => true,
		"comment" => "This is a comment",
		"effective"=> null,
		"users_recid" => "1217", 	//RecID of User that initiated the update
		"contact" => "216121", 		//RecID of Contact that initiated the update
		"selectedServiceRecids" =>
		[
			"402768", 				//RecID of Service getting updated
			"402769" 				//RecID of Service getting updated
		],
		"selectedServiceFilters" => [],
		"isLocationRequired" => false,
		"isServiceHostRequired" => false,
		"selectedServiceTypeListRecid" => null,

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 3:07 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1507",  	
	]
);

Service Desk Bulk Update

The (v1) Service Desk Bulk Update Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Service Desk Bulk Update
/**
* Event: Service Desk Bulk Update requested
* Listener Class: Servicedesk_Model_ServiceDesk
* Listener Method: eventBulkUpdate
*/  

PCR_Event::attachDb(
    "bulk-update",
    ["Servicedesk_Model_ServiceDesk" => "eventBulkUpdate"]
);
PCR_Event::trigger(
    "bulk-update", 
	[ 		
		"due_date_enabled" => "0",
		"sd_type_enabled" => "0",
		"sd_status_enabled" => "0",
		"csr_enabled" => "0",
		"contact_owner_enabled" => "0",
		"dept_hier_owner_enabled" => "0",
		"requestor_enabled" => "0",
		"sd_source_enabled" => "0",
		"assoc_proj_enabled" => "0",
		"impact_enabled" => "1",
		"impact" => "132",
		"urgency_enabled" => "1",
		"urgency" => "321",
		"RECID" => "25196",
		"dialogCallback" => true,
		"confirmed" => true,
		"comment" => "This is a comment",
		"users_recid" => "1217",
		"contact" => "216121",
		"cronEvent" => true,
		"selectedServiceDeskRecids" =>
		[
			"25196", //RecID of Service Desk record getting updated
			"25195" //RecID of Service Desk record getting updated
		],
		"selectedServiceDeskFilters" => [],

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 3:19 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1519",  	
	]
);

Warehouse Bulk Add Equipment

The Warehouse Bulk Add Equipment Events can be triggered using Custom Logic. Asset, Unit, and Regular types of Equipment can be generated using Custom Logic. The following parameters are Required to execute each Event.

Asset

Warehouse Bulk Add Asset Equipment
/**
* Event: Warehouse Equipment Bulk Add requested 
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkAdd
*/

PCR_Event::attachDb(
	"whs-bulk-add", 
	["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"]
);
PCR_Event::trigger(
	"whs-bulk-add", 
	[
		"PARAMS" => 
		[
			"part_number" => "3430",  			//EQP_CATALOG_RECID
			"eqp_status" => "91",     			//EQP_STATUS_LISTS_RECID
			"eqp_condition" => "101", 			//EQP_CONDITION_LISTS_RECID
			"received_date" => "2022-09-29 00 => 00 => 00", 
			"location" => "332591",   			//LOCATIONS_RECID
		 	"quantity" => null,
			"purchase_price" => null,
		 	"save-new" => "true",
			"multi_checkbox" => 
			[
				"asset_tag"
			],
			"asset_tags" => "10683.1;\r\n10683.2;\r\n10683.3;\r\n10683.4;\r\n10683.5;",
			"multi_checkbox-asset_tag" => 1,
			"multi_checkbox-serial_number" => 0,
			"multi_checkbox-equipment_id" => 0,
			"multi_checkbox-mac_address" => 0,
			"udf" => 
			[
				"180" => 
				[
					"VALUE" => null,
					"DATATYPE" => "VARCHAR"
				]
			],
			"part_number_display" => "FT-AA - Asset Equipment (Feet), (Asset)",
			"location_display" => "FT-3347",
			"dialogCallback" => true,
			"confirmed" => true,
			"comments" => "This is a comment"
		],
		"ASSETS" => 
		[
			[
				"ASSET_TAG" => "10683.1",
				"SERIAL_NUM" => null,
				"EQUIPMENT_ID" => null,
				"MAC_ADDRESS" => null
			],
			[
				"ASSET_TAG" => "10683.2",
				"SERIAL_NUM" => null,
				"EQUIPMENT_ID" => null,
				"MAC_ADDRESS" => null
			],
			[
				"ASSET_TAG" => "10683.3",
				"SERIAL_NUM" => null,
				"EQUIPMENT_ID" => null,
				"MAC_ADDRESS" => null
			],
			[
				"ASSET_TAG" => "10683.4",
				"SERIAL_NUM" => null,
				"EQUIPMENT_ID" => null,
				"MAC_ADDRESS" => null
			],
			[
				"ASSET_TAG" => "10683.5",
				"SERIAL_NUM" => null,
				"EQUIPMENT_ID" => null,
				"MAC_ADDRESS" => null
			]
		],
		"FORM_FIELD_KEY" => 
		[
			"EQUIPMENT" => 
			[
				"part_number" => "EQP_CATALOG_RECID",
				"eqp_status" => "EQP_STATUS_LISTS_RECID",
				"eqp_condition" => "EQP_CONDITION_LISTS_RECID",
				"received_date" => "RECEIVED_DATE",
				"location" => "LOCATIONS_RECID",
				"units" => "UNITS",
				"purchase_price" => "PURCHASE_PRICE",
				"ASSET_TAG" => "ASSET_TAG",
				"SERIAL_NUM" => "SERIAL_NUM",
				"EQUIPMENT_ID" => "EQUIPMENT_ID",
				"MAC_ADDRESS" => "MAC_ADDRESS",
				"BILLABLE" => "BILLABLE",
				"CONSUMED" => "CONSUMED"
			],
			"LOCATIONS" => 
			[
				"per_unit_price" => "PER_UNIT_PRICE",
				"asset_text" => "ASSET_TEXT"
			],
			"RECID" => "RECID"
		],

	 	"contact" => "17",  

 		"eventBroadcastBy" => "12345",
		"eventBroadcastTime" => "Sep 30, 2022, 11 => 23 am",
		"eventBroadcastDayofWeek" => "5",
		"eventBroadcastHourMin" => "1123",
	 ]
);

Regular

Warehouse Bulk Add Regular Equipment
/**
* Event: Warehouse Equipment Bulk Add requested 
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkAdd
*/


PCR_Event::attachDb(
	"whs-bulk-add", 
	["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"]
);
PCR_Event::trigger(
	"whs-bulk-add",  
	[
	"PARAMS" =>
	[ 			"part_number" => "3428", 			//EQP_CATALOG_RECID
			"eqp_status" => "91", 				//EQP_STATUS_LISTS_RECID
			"eqp_condition" => "101", 			//EQP_CONDITION_LISTS_RECID
			"received_date" => "2022-10-03 00:00:00",
			"location" => "332591",				//LOCATIONS_RECID
			"purchase_price" => null,
		 	"quantity" => null,
			"RECID" => "332591",
			"multi_checkbox" => [],
			"asset_tags" => null,
			"multi_checkbox-asset_tag" => 0,
			"multi_checkbox-serial_number" => 0,
			"multi_checkbox-equipment_id" => 0,
			"multi_checkbox-mac_address" => 0,
			"udf" =>
			[
				"180" =>
				[
					"VALUE" => "test",
					"DATATYPE" => "VARCHAR"
				]
			],
			"part_number_display" => "FT-No Boxes - FT-No Boxes (Feet)",
			"location_display" => "FT-3347",
			"dialogCallback" => true,
			"confirmed" => true,
			"comments" => "This is a comment"
		],
		"FORM_FIELD_KEY" =>
		[
			"EQUIPMENT" =>
			[
				"part_number" => "EQP_CATALOG_RECID",
				"eqp_status" => "EQP_STATUS_LISTS_RECID",
				"eqp_condition" => "EQP_CONDITION_LISTS_RECID",
				"received_date" => "RECEIVED_DATE",
				"location" => "LOCATIONS_RECID",
				"units" => "UNITS",
				"purchase_price" => "PURCHASE_PRICE",
				"BILLABLE" => "BILLABLE",
				"CONSUMED" => "CONSUMED"
			],
			"LOCATIONS" =>
			[
				"per_unit_price" => "PER_UNIT_PRICE",
				"asset_text" => "ASSET_TEXT"
			],
			"RECID" => "RECID"
		],

		"contact" => "216121",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 1:17 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1317",    
	]
);

Unit

Warehouse Bulk Add Unit Equipment
/**
* Event: Warehouse Equipment Bulk Add requested 
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkAdd
*/


 PCR_Event::attachDb(
	"whs-bulk-add", 
	["Application_Model_Location_Warehouse_Warehouse" => "eventBulkAdd"]
);
PCR_Event::trigger(
	"whs-bulk-add", 
	[
	"PARAMS" => 
	[
			"part_number" => "294", 			//EQP_CATALOG_RECID
			"eqp_status" => "91", 				//EQP_STATUS_LISTS_RECID
			"eqp_condition" => "101", 			//EQP_CONDITION_LISTS_RECID
			"received_date" => "2022-09-29 00:00:00",
			"location" => "332591",
		 	"quantity" => null,
			"units" => "5",
			"purchase_price" => null,
			"multi_checkbox" => [],
			"asset_tags" => null,
			"multi_checkbox-asset_tag" => 0,
			"multi_checkbox-serial_number" => 0,
			"multi_checkbox-equipment_id" => 0,
			"multi_checkbox-mac_address" => 0,
			"udf" =>
			[
				"180" =>
				[
					"VALUE" => "FT-Bulk Add",
					"DATATYPE" => "VARCHAR"
				]
			],
			"part_number_display" => "1\/4-FEN-WASH - Metallics 1\/4 Fender Washer (Box)",
			"location_display" => "FT-3347",
			"dialogCallback" => true,
			"confirmed" => true,
			"comments" => "This is a comment"
		],
		"FORM_FIELD_KEY" =>
		[
			"EQUIPMENT" =>
			[
				"part_number" => "EQP_CATALOG_RECID",
				"eqp_status" => "EQP_STATUS_LISTS_RECID",
				"eqp_condition" => "EQP_CONDITION_LISTS_RECID",
				"received_date" => "RECEIVED_DATE",
				"location" => "LOCATIONS_RECID",
				"units" => "UNITS",
				"purchase_price" => "PURCHASE_PRICE",
				"BILLABLE" => "BILLABLE",
				"CONSUMED" => "CONSUMED"
			],
			"LOCATIONS" =>
			[
				"per_unit_price" => "PER_UNIT_PRICE",
				"asset_text" => "ASSET_TEXT"
			],
			"RECID" => "RECID"
		],
		
		"contact" => "216121",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Sep 29, 2022, 12:14 pm",
		"eventBroadcastDayofWeek" => "4",
		"eventBroadcastHourMin" => "1214",   
	]
);

Warehouse Bulk Transfer

The Warehouse Bulk Transfer Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Asset Equipment

Warehouse Bulk Transfer Asset Equipment
/**
* Event: Warehouse Equipment Bulk Transfer requested
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkTransfer
*/


PCR_Event::attachDb(
    "whs-bulk-transfer",
    ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkTransfer"]
);
PCR_Event::trigger(
    "whs-bulk-transfer", 
	[ 		
		"LOCATIONS_RECID" => "332591", 	//RecID of From Warehouse Location  
		"part_number" => "3430",
		"quantity" => null,
		"location" => "332591", 		//RecID of From Warehouse Location
		"to_location" => "331570", 		//RecID of To Warehouse Location 
		"eqpWarehouseGrid" => 
		[
			"value" => 
			[
				"703582", 				//RecID of Equipment selected for transfer 
				"703583" 				//RecID of Equipment selected for transfer 
			],
			"total-records" => 0
		],
		"asset_or_cabling_or_units" => "asset",
		"RECID" => "3430", 				//RecID of Equipment on Manage Warehouse form
		"part_number_display" => "FT-AA - Asset Equipment (Feet), (Asset)",
		"location_display" => "FT-3347",
		"to_location_display" => "Pete Test",
		"dialogCallback" => true,
		"confirmed" => true,
		"comments" => "This is a comment",
		"contact" => "216121", 			//RecID of Contact that initiated transfer

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 10 => 45 am",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1045",  	
	]
);

Regular Equipment

Warehouse Bulk Transfer Regular Equipment
/**
* Event: Warehouse Equipment Bulk Transfer requested
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkTransfer
*/

PCR_Event::attachDb(
    "whs-bulk-transfer",
    ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkTransfer"]
);
PCR_Event::trigger(
    "whs-bulk-transfer",
	[ 		
		"LOCATIONS_RECID" => "332591",	 	//RecID of From Warehouse Location
		"part_number" => "3428",
		"quantity" => "2",
		"location" => "332591", 			//RecID of From Warehouse Location
		"to_location" => "331570", 			//RecID of To Warehouse Location
		"eqpWarehouseGrid" => 
		[
			"value" => [],
			"total-records" => 0
		],
		"asset_or_cabling_or_units" => "none",
		"RECID" => "3428", 					//RecID of Equipment on Manage Warehouse form
		"part_number_display" => "FT-No Boxes - FT-No Boxes (Feet)",
		"location_display" => "FT-3347",
		"to_location_display" => "Pete Test",
		"dialogCallback" => true,
		"confirmed" => true,
		"comments" => "This is a comment",
		"contact" => "216121",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 1 => 58 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1358",  	
	]
);

Unit Equipment

Warehouse Bulk Transfer Unit Equipment
/**
* Event: Warehouse Equipment Bulk Transfer requested
* Listener Class: Application_Model_Location_Warehouse_Warehouse
* Listener Method: eventBulkTransfer
*/

PCR_Event::attachDb(
    "whs-bulk-transfer",
    ["Application_Model_Location_Warehouse_Warehouse" => "eventBulkTransfer"]
);
PCR_Event::trigger(
    "whs-bulk-transfer",
	[ 		
		"LOCATIONS_RECID" => "332591",		 //RecID of From Warehouse Location
		"part_number" => "3426",
		"quantity" => "1",
		"location" => "332591",		 		//RecID of From Warehouse Location
		"to_location" => "331570",		 	//RecID of To Warehouse Location
		"eqpWarehouseGrid" => 
		[
			"value" => [],
			"total-records" => 0
		],
		"asset_or_cabling_or_units" => "units",
		"RECID" => "3426",				 	//RecID of Equipment on Manage Warehouse form
		"part_number_display" => "FT-UAC - Non-Consumable Contiguous Unit Equipment (Feet)",
		"location_display" => "FT-3347",
		"to_location_display" => "Pete Test",
		"dialogCallback" => true,
		"confirmed" => true,
		"comments" => "This is a comment",
		"contact" => "216121", 			//RecID of Contact that initiated transfer

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 11 => 16 am",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1116",  	
	]
);

Zero/Low Calls Report

The Zero/Low Calls Report Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Zero/Low Calls Report
/**
* Event: Zero/Low Calls Report
* Listener Class: Application_Model_CallDetails_CallDetails
* Listener Method: eventZeroCallsReport
*/

PCR_Event::attachDb(
    "zero-calls-report",
    ["Application_Model_CallDetails_CallDetails" => "eventZeroCallsReport"]
);
PCR_Event::trigger(
    "zero-calls-report", 
	[ 		
		"date_range" => "Last 30 Days", 		//Value entered in Date Range
		"service_host" => "22", 				//RecID of Service Host
		"call_count" => "10",
		"duration" => "30",
	 	"email" => "test@test.com",				//Optional field
		"service_host_display" => "Avaya", 		//Name of Service Host
		"dateRange" => 
		[
			1662177600, //Not sure what these numbers represent? Hopefully a Dev will know!
			1664769600
		],

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 3, 2022, 2 => 50 pm",
		"eventBroadcastDayofWeek" => "1",
		"eventBroadcastHourMin" => "1450",  	
	]
);

Help Desk Portal - Email: help@pcr.com - Phone: 616.259.9242