When creating a record through CSV import, an SSS_INVALID_API_USAGE error is encountered.
The SSS_INVALID_API_USAGE error appears when a user event script instantiates records by using the newRecord.
- When the script executes on a record that is being created, and the script attempts to use Record.getText(options) without first using Record.setText(options) for the same field.
- When the script executes on an existing record or on a record being created through copying, and the script uses Record.setValue(options) on a field before using Record.getText(options) for the same field.
We can use Record.getValue(options) or Record.setValue(options) for setting and getting the values stored in the field.