Rob
08/29/2024, 2:44 PMCeligo AI
08/29/2024, 2:44 PMAI generated answer (using internal Slack threads):In order to add a record type as a script parameter, you might need to create a custom list with your document types. Unfortunately, the native List/Record Field: Record Type might not be suitable for this purpose as it returns the Record Type ID instead of the Script ID, which is what you would need to use in your code. However, you could consider using the
Scripted Record Type
and use sourcing to get the script id. This might be a workaround to your problem.
Please note that not all record types are officially scriptable. If a record type is not listed in the records browser, it might not be officially scriptable. You can check if a record type is scriptable by editing a record and opening a console and doing nlapiGetRecordType();
(1.0 version of getting the record type). If nothing comes back, it's not scriptable. Adding &xml=T
to the end of a record URL is also a way to check. If it doesn't give you back the XML structure, it's not scriptable.
There are various ways of guessing record types, and one approach is using NetSuite's client-side record list. NetSuite uses the global nsapiGetRecord
function to see if a record type is supported or not, and it's simple enough that you can examine it and recreate it yourself.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/29/2024, 2:45 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819661558
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81678313
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815553
Celigo AI
08/29/2024, 2:45 PM