Hi All, I am writing sendRedirect in a custom suit...
# suitescript
s
Hi All, I am writing sendRedirect in a custom suitelet page, and I got this error
Copy code
execute on com.sun.proxy.$Proxy710.sendRedirect failed due to: Multiple applicable overloads found for method name sendRedirect
Has anyone ever experience with this before? My code looks like this:
Copy code
var newRecordId = saveCredentialRecord(formData)
context.response.sendRedirect({
  identifier: 'customrecord_gw_master_credentials',
  type: https.RedirectType.RECORD,
  id: newRecordId,
})
b
using 2.0?
s
2.1
b
dont use 2.1 for redirects
s
ok
let me try
but I was success in develop environment, this happens when I bundle it and install the bundle from other SB account. Is this issue comes from environment?
b
2.1 doesnt do redirects correctly
at least on 2020.1
havent tried on 2020.2
s
got it