We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Not able to get Thread Prev Count

Received Response
edited Feb 10, 2016 11:17AM in UI Extensibility 4 comments


Hi All,

I have a Requirement to send an SMS(Contact) when an agent create a response thread .For that i have to check whether the thread is updated , for this i have to compare current count and previous count ,I am able to get the current count .

Let me know how can get the previous thread count.


Thanks in Adnace



Code Snippet

             public static function apply($run_mode, $action, $obj, $n_cycles)

   $prevCount = count($obj->prev->Threads);
   if($count == 0)
        $obj->Threads = new RNCPHP1\ThreadArray();
   $obj->Threads[$count]= new RNCPHP1\Thread();
    $obj->Threads[$count]->EntryType = new RNCPHP1\NamedIDOptList();
    $obj->Threads[$count]->EntryType->ID = 3; 
    $obj->Threads[$count]->Text = " Prev count - ".$prevCount;

Howdy, Stranger!

Log In

To view full details, sign in.


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