Non System admin user cannot access PreferredVisitHoursId field on Retailstore object
Last updated 2022-02-10 ·Reference W-9642259 ·Reported By 6 users
Summary
No such column 'PreferredVisitHoursId' ( which is a lookup to Operating Hours) on entity 'RetailStore' when querying PreferredVisitHoursId field on RetailStore object. The issue is resolved when the permission "Customize Application“ is assigned to the user.
Repro
1. Login to Workbench or use developer console as a non system admin user without "Customize Application“ permission
2. Run SOQL query "SELECT Id, PreferredVisitHoursId FROM RetailStore"
3. Observe the error
INVALID_FIELD:
SELECT Id, PreferredVisitHoursId FROM RetailStore
^
ERROR at Row:1:Column:12
No such column 'PreferredVisitHoursId' on entity 'RetailStore'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
OR
1. Add the field to the RetailStore object and access a RetailStore record as the non system admin
2.The field is not visible even when he has full access on the fields and its added to the page layout.
Workaround
None at the moment other than providing "Customize Application“ permission
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.