SuiteScript 2.0: ```search.lookupFields({ type: 'e...
# suitescript
n
SuiteScript 2.0:
Copy code
search.lookupFields({
type: 'employee',
id: intInternalId,
columns: ['entityid', 'custentity_checkboxa']
});
Getting an
SSS_INVALID_SRCH_COL
when the column is a custom checkbox field. Any idea why?
k
Copy code
This API cannot be used on a field unless the value is stored in the database. To prevent this error the Store Value option should be checked. To verify if the option is checked complete the following steps:
• Navigate to  Customization > Lists, Records & Fields > Select the field type you wish to edit (Entity, Item, CRM, etc.)
• Search for the field and view it.
• Search the “Store Value” option and ensure that it is checked.
 
Note that this error is also returned when the field is not supported or not documented in SuiteScript Records Browser.
@nikkodave
n
Hi @Kevin, it is customized field and marked as Stored Value. One thing, it has access limit.
message has been deleted
k
how are executing script and which role you using to execute as
n
Client script: Tried using SEARCH.create and SEARCH.lookupFields Role is CB Payroll. If using Admin, it works.
k
why don’t you use Admin ?
any limitations
n
Permission issues. But if this persists, might use Suitelet as backend instead.
k
Clearly
n
Thanks, @Kevin.
k
Can you check that roles has suitescript access
customizations
Make sure suitescript access
n
Role permission, suitescript?
Added a Suitescript permission to the role. Let me check.
It works! Thanks Kevin.
k
you’re welcome!