Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
SuiteScript 2.0 - Can we create a gift certicate from a script?
Hello Guru team,
I'd like to create a gift certificate from SuiteScript 2.0, however, the script got the error
GIFT_CERT_CODE_REQD 04/01/2020 22:17:43.282
{"type":"error.SuiteScriptError","name":"GIFT_CERT_CODE_REQD","message":"You must specify a gift certificate code.","stack":["createError(N/error.js)","<anonymous>(adhoc$-1$debugger.user:2)","<anonymous>(adhoc$-1$debugger.user:1)"],"cause":{"type":"internal error","code":"GIFT_CERT_CODE_REQD","details":"You must specify a gift certificate code.","userEvent":null,"stackTrace":["createError(N/error.js)","<anonymous>(adhoc$-1$debugger.user:2)","<anonymous>(adhoc$-1$debugger.user:1)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
Though I tried both fields for giftcertificaterecord, giftcertcode but it still got the same error.