What's new in Customer Journeys?

Connect and learn more!
IncidentResponse do not send email but added to thread — Cloud Customer Connect
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

IncidentResponse do not send email but added to thread

Received Response
50
Views
4
Comments
edited Jun 8, 2022 12:09PM in General Technical Discussions 4 comments

Summary

IncidentResponse do not send email but added to thread

Content

I try to use incidentresponse object to add response and send an email, however, it only adds the thread but not sending any email out. Any guidance is much appreciated.

 

Code Snippet

    public static function addCommunication(&$request, $message)
    {
        $response = new RNCPHP\IncidentResponse();
        $response->Incident = $request;
        if(!$response->Incident->Threads){
            $response->Incident->Threads= new RNCPHP\ThreadArray();
        }
        $thread_count = count($response->Incident->Threads);
        $response->Incident->Threads[$thread_count]= new RNCPHP\Thread();
        $response->Incident->Threads[$thread_count]->Text=$message;
        $response->Incident->Threads[$thread_count]->EntryType

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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