...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
/**
* 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",
"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",
"essential_enabled" => "0",
"report_911_enabled" => "0",
"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",
]
); |
...