Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.