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

how to add incident field values into thread text

Received Response
20
Views
3
Comments
edited Dec 5, 2019 5:50PM in Integrations and APIs 3 comments

Summary

add incident field values into thread text

Content

Hi ,

Plz let me know how to add Field values into Thread text.

$parent_inc and $inc_tmp are two objects.

                          $f_count = count($parent_inc->Threads);
                            $parent_inc->Threads[$f_count] = new RNCPHP\Thread();
                            $parent_inc->Threads[$f_count]->EntryType = new RNCPHP\NamedIDOptList();  
                            $parent_inc->Threads[$f_count]->EntryType->LookupName = 'Staff Account';  
                            $parent_inc->Threads[$f_count]->ContentType->ID=2;           

//this red color code giving me error   

             
                            $parent_inc->Threads[$f_count]->Text = "This Incident was closed and merged into "   . $inc_tmp.ReferenceNumber . " - " . $inc_tmp.Subject ;

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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