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
LloydSLloydS 

Creating Case trigger conditional on submitter being a Contact

I want to create a trigger on the Case object to enable the self-service portal when someone submits a case, they are in SFDC as a Contact or Person Account (and therefore not an anonymous submitter of a case with just their email address), and of course they haven't already been enabled for self-service portal.

 

What's the appropriate way to write the conditional statement regarding the Case submitter being a Contact or Person Account? The rest should be easy but that part is giving me some trouble. Thank you much.