Document toolboxDocument toolbox

(2024.2) Equipment Bulk Update Event

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