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 script in report not working

Accepted answer
80
Views
16
Comments
edited Sep 17, 2019 11:27AM in Agent Desktop 16 comments

Summary

Custom script not updating Incident data

Content

Hi ,

I have requirement where I need to update incident Status of the records that meets condition . I change Incident status from 'Solved' to 'Closed'.

My report brings the records properly.

But the custom script written in Process tab  not giving the result.

Plz help.

Service Cloud Version : 18C

 

Code in initialization tab

----------------------------------

require_once(get_cfg_var('doc_root') . '/include/ConnectPHP/Connect_init.phph' );
initConnectAPI();
putenv('TEMPORARY_RNW_CONF_DIRECTORY');

 

Code in Process tab mentioned below

-------------------------------------------------

$inc_id = $rows[0][0]->val;

$incident = RightNow\Connect\v1_4\Incident::fetch($inc_id);

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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