Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.