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

Custom php scripts not working for Bulk insert or update

Accepted answer
3
Views
3
Comments
edited Oct 26, 2017 10:13AM in Integrations and APIs 3 comments

Content

Hi All,

i want the custom php script to be executed for bulk insert and update of data through data import wizard.

The script is working fine when i insert data using REST, but the same script is not working when i insert data using data import wizard.

Please find the code snippet below, what are the changes i want to make to the php scripts to make it work for bulk upload of data using data import wizard.

Version

Service cloud

Code Snippet

             <?
/*
 * CPMObjectEventHandler: Reservation_OND
 * Package: CO
 * Objects: CO$Segment
 * Actions: Create
 * Version: 1.2
 */
use \RightNow\Connect\v1_2 as RNCPHP;

use \RightNow\CPM\v1 as RNCPM;

class Reservation_OND 
        implements RNCPM\ObjectEventHandler
{
    public static function apply( $run_mode, $action, $Segment, $cycle )
    {
        if ($cycle !== 0) return;
        if (RNCPM\ActionCreate == $action)
        {  
		   $MinONDGroupID;
		 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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