1

A customer community user, when creating a case, will select an internal user using a lookup field. But in that lookup field, only Admin users are coming when searched, no other internal users appear.
So I have written a trigger on Case object to populate this field. Now when I am trying to query the internal user based on Id (I know I could have put the Id in the lookup directly, but I am querying because I need some field values also), the query is not returning any records, although that user is active. Is this the case, that triggers are affected by the Users who trigger them and so, as triggered by external user, cannot query internal users? Is there any way to circumvent this, like maybe changing the Owner?

2
  • Is your class declared with the 'with sharing' or 'without sharing' keywords?
    – Nick C
    Aug 10, 2017 at 7:42
  • I am using a trigger handler class without sharing. Aug 10, 2017 at 7:43

0

You must log in to answer this question.

Browse other questions tagged .