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

Incident Thread is not getting added

Accepted answer
15
Views
5
Comments
edited Oct 18, 2016 6:49AM in Integrations and APIs 5 comments

Content

Hi all,

I am trying to add a new thread to an existing incident and i am not able to add.
Code 

        $f_count = count($incident->Threads);
        $incident->Threads[$f_count+1] = new RNCPHP\Thread();
        $incident->Threads[$f_count+1]->EntryType = new RNCPHP\NamedIDOptList();
        $incident->Threads[$f_count+1]->EntryType->ID = 3;
        $incident->Threads[$f_count+1]->Text = $standardtxt;
        $incident->save();

I am using the above code to do this 
can anybody tell me what am i missing here

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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