...
Code Block | ||||
---|---|---|---|---|
| ||||
// $apiFunction Examples: saveService, saveServiceDesk, saveContactssaveContact, saveCable, saveGla, saveEquipment, etc. $this->call(string $apiFunctionToCall, array $params) |
...
In this example the GLA Replace Event is triggered with specific parameters. For detailed information on which Events can be triggered, and how to trigger those Events, please navigate to the Index Triggerable Events List page.
Code Block | ||||
---|---|---|---|---|
| ||||
PCR_Event::attachDb("replace-gla", [ "Application_Model_Gla_Gla" => "eventReplaceGla" ]); PCR_Event::trigger("replace-gla", [ "contact" => 12345, // Contact RECID "users_recid" => 456, // Users RECID "glaRecid" => [1111], // Old GLA RECID "replaceGlaRecid" => 2222, // Replacement GLA RECID "setInactiveGla" => true, "comment" => "This is a comment", ]); |
...