what are all the avalible options on the newRecord...
# ask-stanley-ai
i
what are all the avalible options on the newRecord. in scripting
c
AI generated answer (using internal Slack threads):
In SuiteScript, the
newRecord
object provides several methods to interact with the record. Here are some of the available options: 1. `getValue(options)`: This method is used to get the value of a field. The options object has two properties:
fieldId
which is the ID of the field to get the value from, and
ignoreFieldChange
which if set to true, allows the context of the field change to be ignored. 2. `getText(options)`: This method is used to get the text of a select field's current selection. The options object has one property:
fieldId
which is the ID of the field to get the text from. 3. `setValue(options)`: This method is used to set the value of a field. The options object has three properties:
fieldId
which is the ID of the field to set the value on,
value
which is the value to set on the field, and
ignoreFieldChange
which if set to true, allows the context of the field change to be ignored. 4. `setText(options)`: This method is used to set the text of a select field. The options object has two properties:
fieldId
which is the ID of the field to set the text on, and
text
which is the text to set on the field. 5. `getSublistValue(options)`: This method is used to get the value of a sublist field. The options object has three properties:
sublistId
which is the ID of the sublist,
fieldId
which is the ID of the field to get the value from, and
line
which is the line number in the sublist. 6. `getSublistText(options)`: This method is used to get the text of a sublist field's current selection. The options object has three properties:
sublistId
which is the ID of the sublist,
fieldId
which is the ID of the field to get the text from, and
line
which is the line number in the sublist. 7. `setSublistValue(options)`: This method is used to set the value of a sublist field. The options object has four properties:
sublistId
which is the ID of the sublist,
fieldId
which is the ID of the field to set the value on,
line
which is the line number in the sublist, and
value
which is the value to set on the field. 8. `setSublistText(options)`: This method is used to set the text of a sublist field. The options object has four properties:
sublistId
which is the ID of the sublist,
fieldId
which is the ID of the field to set the text on,
line
which is the line number in the sublist, and
text
which is the text to set on the field. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810396075
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.80810976
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807970166
Please provide your feedback on this answer.
i
is there any documentation on this?
is there any documentation on this?