Hi all, I am getting this error ```Cannot read pro...
# suitescript
k
Hi all, I am getting this error
Copy code
Cannot read property "SUITELET" from undefined
w
Have you included the N/http module so that you can use that enum? The documentation also states that you need the option "id" for suitelets. It should be the deployment id.
Copy code
context.response.sendRedirect({
  type: http.RedirectType.SUITELET,
  identifier: 'customscript761',
  id: 'customdeploymentXX', //or maybe the internalid of the script deployment
  parameters: { entity: 8 },
})
Also, where is this script used? If it is a after submit user event script. You should probably use the N/redirect module instead.