Rohinvijay
Rohinvijay

Reputation: 1

Suite Script for User Event is not getting triggered for xedit operaration

I have a SuiteScript which is getting triggered on AfterSubmit of any Case update. It is working fine for normal updates.

But when I try to edit a Case in-line(through case search), the event is not getting triggered.

Do I need to configure anything specific to handle the in-line edit during the script deployment?

Please find the script which I am using to identify the xedit operation.

function handleSupportCaseCreateUpdateReqeust(type, form, request) {
    try {        
        if(type == 'xedit'){
            nlapiLogExecution('AUDIT', 'TFSNSIntegrator Log', 'Type of the event is :'+ type);
        }
} catch (e) {
        nlapiLogExecution('ERROR', 'Exception', e.message);
    }

Upvotes: 0

Views: 1954

Answers (2)

Rohinvijay
Rohinvijay

Reputation: 1

Through NetSuite Support, I figured out the issue.

The issue was with the option I selected to deploy the SuiteScript. I selected 'Edit' event to trigger the script, since we dont have a option "xedit". Actually we should not select any particular event. I just deployed it with our selecting any specific event and it started to work.

Thanks all for your replies!

Upvotes: 0

Alex Placito
Alex Placito

Reputation: 171

This is a simple thought, but may as well check - have you confirmed that your Deployment's Log Level is set to Audit? If not, that could be why you aren't seeing that in the execution log.

Upvotes: 2

Related Questions