Isaac Rumbold
11/20/2024, 8:06 PMCeligo AI
11/20/2024, 8:06 PMAI 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.
******Celigo AI
11/20/2024, 8:07 PMSlack 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
Celigo AI
11/20/2024, 8:07 PMIsaac Rumbold
11/20/2024, 8:09 PMIsaac Rumbold
11/20/2024, 8:09 PM