You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get current object data in custom model process (CPM)

Accepted answer
edited Dec 7, 2017 12:41PM in Integrations and APIs 3 comments


Please see code below - just fiddling with some random stuff at this point. I have the if/else statements. My question is how would I check the current value of let's say the product, category or queue to be additional conditions on the if/else statement

Code Snippet

             class MinimalIncidentHandler implements RNCPM\ObjectEventHandler

     * Apply CPM logic to object.
     * @param int $runMode
     * @param int $action
     * @param object $incident
     * @param int $cycles
    public static function apply($runMode, $action, $incident, $cycle)
        if ($cycle !== 0) return;

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!