Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

is that possible to add 2 RN objects in one CPM script ?

$
0
0

Topic by Shwetha Sravanth

Content

I would like to send an email to external contact on the basis of survey score, problem is, i don't get the list of all custom processes which i created so far, i assume survey explorer allow only those scripts which created for contact object. so is there any way to add 2 objects in one CPM Script, i am wondering is this possible or not? i get error when try below code :

<?
/*
* CPMObjectEventHandler: Send_transcript_test
* Package: RN
* Objects: Contact, Incident
* Actions: Create, Update
* Version: 1.2
* Purpose: Send Chat Transcript to External Contact when survey score is less
*/
//binds to the Connect PHP API
use \RightNow\Connect\v1_2 as RNCPHP;

//binds to the CPM Process Designer
use \RightNow\CPM\v1 as RNCPM;

//impementation
class Send_transcript_test implements RNCPM\ObjectEventHandler
{
    public static function apply ($run_mode, $action, $obj, $n_cycles)
    {

 

Version

Cp 3.0

Viewing all articles
Browse latest Browse all 2504

Trending Articles