Sn-record picker doesnot show up data from sys_choice table for non-admin users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2020 04:11 AM
xHi ,
I have custom widget which has to refer to sys_choice table using sn-record picker directive. This widget has 20 sn-record picker fields to reference sys_choice table. The issue is that, I have few custom roles for the profiles that uses this widget and this widget is built in scope application. Whenever I impersonate with these custom role profiles, I am not able to select the value in the record picker referencing the sys_choice , the list is blank. but with the same profiles in backend the choice field pointing to these choices works. Instead of using sn-choice list and I preferred to use sn-record picker for the selection. Is there is any limitation for scope application widgets to access sys_choice in sn-record picker. Any leads would be highly appreciated. Below is the code.
<label>What is the Business Unit / Department responsible for the data?</label><br>
<sn-record-picker field="businessunit" table="'sys_choice'" display-field="'label'" default-query="'elementSTARTSWITHbusiness_unit_bu_department^inactive=false^name=x_eyct_xvia_xvias'" value-field="'value'" search-fields="'label'" page-size="100" placeholder="Business Unit (BU) / Department" sn-disabled="c.data.business_unit_bu_departmentaccess">
</sn-record-picker>
This works perfectly for admin users. I checked ACl's in sys_choice and there is no restriction.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2020 11:58 PM
Hi,
I think there can be two issues:
1) Your scoped application cross scope access which is waiting for approval meaning it will be
Restricted Caller Access Privileges
2) It can be a access level issue.
I would suggest to debug ACL and try that. If it works for admin then it should be this ACL issue.
Thanks,
Ashutosh