function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dev@Force.ax647Dev@Force.ax647 

No such column 'AccountId' on entity 'AccountTeamMember'.

I have a trigger on case where I send email to account team member whenever new case is created. It is working fine when I create case as standard salesforce user. but I am getting exception when I login as customer portal user and create case.

 

 I am getting following exception

 

No such column 'AccountId' on entity 'AccountTeamMember'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name.

Forza di SognoForza di Sogno

This isn't a high-volume customer portal user, is it?  If so, the user doesn't have access to account teams.  If it's a regular customer portal user, check the profile/access settings.