https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
a

AB

03/31/2022, 7:56 AM
Hi Guys, I am calling SuiteLet from UserEvent script but the it's not triggered. Below is the code, var suiteletURL = url.resolveScript({ scriptId: 'customscript_aby_ns_usaepay_process_cp', deploymentId: 'customdeploy_aby_ns_usaepay_proc_cp_dep', returnExternalUrl: true, parameters: { 'custPymtId': custPymtId } }); log.debug('DEBUG','suiteletURL: ' + suiteletURL); var response = https.post({ url: suiteletURL, body: 'MY DATA' }); Any help??
b

battk

03/31/2022, 10:27 AM
you probably want to take a look at the response body
otherwise the better approach is to use the suitelet's code as a custom module
a

AB

03/31/2022, 1:13 PM
@battk what I check in response body? could you please let me know?
b

battk

03/31/2022, 1:22 PM
the response body probably has information about whats wrong
a

AB

03/31/2022, 4:31 PM
Okay