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

Unable to POST with Oracle Sales Cloud using Event Handler.

Accepted answer
13
Views
8
Comments
edited May 24, 2017 5:49AM in Integrations and APIs 8 comments

Content

Hi,

I have to integrate Opportunities in Oracle Service Cloud with Leads in Oracle SALES Cloud. There is no ICS in this implementation so I need to configure this using an event handler in Service Cloud. Check the code I am using.

I am not getting anything. Not even something in the logs. Could you help me solve this problem?

 

thanks

 

Code Snippet

             <?php

/*
* CPMObjectEventHandler: on_opportunity_create
* Package: RN
* Objects: Opportunity
* Actions: Create, Update
* Version: 1.2
*/

use \RightNow\Connect\v1_2 as RNCPHP;
use \RightNow\CPM\v1 as RNCPM;
use RightNow\Connect\v1_2\Audit as RNCPHP_Audit;

class on_opportunity_create implements RNCPM\ObjectEventHandler
{

  public static function apply( $run_mode, $action, $obj, $n_cycles)
    {
        echo "Line 20";
        if ($n_cycles !== 0) return;
        if (RNCPM\ActionUpdate == $action)
        {

        }
 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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