Document toolboxDocument toolbox

(v1) .Service Bulk Update Event v2022.1

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

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