Azi
04/05/2021, 4:29 PMconst dropdownValue= newRecord.getValue('custentity_dropdown_options')
const dropdownLabel = newRecord.getText('custentity_dropdown_options')
With getText, I get an error message of Invalid API usage. So as per documentation I tried using getSelectOptions which works in dynamic mode with the N/record module
newRecord.getField({ fieldId: 'custentity_dropdown_options' }).getSelectOptions()
I am getting getSelectOptions is not a function.
How / Is it Possible, to get this seemingly simple piece of information in a beforeSubmit with context.newRecord?Sandii
04/05/2021, 4:36 PMcurrentRecord
type not a record
type. currentRecord.Field.getSelectOptions()
is only availabe client-side, which is why it is not working. As battk already said, do the search