Does anyone know the text field name for Sales Rec...
# suitescript
p
Does anyone know the text field name for Sales Receipts? I'm attempting to use a workflow that has to call it in the record type as a text field. I have a similar workflow for Sales Orders and Invoices, which work fine as salesorder and invoice respectively. I am working with a 3rd party bundle, but I don't believe the bundle has anything to do with the error. The error message is below. Account: ##### Bundle Name: MessageMedia - Standard-ConvoUI Environment: Production Date & Time: 04/24/2020 12:22 pm Record Type: MessageMedia SMS Workflows Internal ID: 206 Execution Time: 0.00s Script Usage: 0 Script: mm workflow ue Type: User Event Function: afterSubmit Error: INVALID_RCRD_TYPE {"type":"error.SuiteScriptError","name":"INVALID_RCRD_TYPE","message":"The record type [SALESRECEIPT] is invalid.","stack":["createError(N/error)","<anonymous>(/SuiteBundles/Bundle 278825/MessageMedia2/modules/templateengine/sms-template-module.js:40)","doAfterSubmit(/SuiteBundles/Bundle 278825/MessageMedia2/modules/workflowmanager/suitescripts/userevent/mm_workflow_ue.js:47)"],"cause":{"type":"internal error","code":"INVALID_RCRD_TYPE","details":"The record type [SALESRECEIPT] is invalid.","userEvent":"aftersubmit","stackTrace":["createError(N/error)","<anonymous>(/SuiteBundles/Bundle 278825/MessageMedia2/modules/templateengine/sms-template-module.js:40)","doAfterSubmit(/SuiteBundles/Bundle 278825/MessageMedia2/modules/workflowmanager/suitescripts/userevent/mm_workflow_ue.js:47)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
message has been deleted
This is the sales receipt version, which triggers the error.
p
I don't believe there's a NS record called Sales Receipt. But i've seen people renaming cash sales as sales receipts.
p
Thank you for your quick response and help. Do you know where I could look in Netsuite to find if a name was changed or what the 'text field' name of a record would be?
e
Setup > Company > Rename Records/Transactions
✔️ 1
p
eric, thank you for your help. the sales receipt was changed from cash sales, so cashsale is the correct field name
👍 1