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
Liloye MolinLiloye Molin 

Automatically Add Entitlements to Cases from Email, Communities

Hello -

I've tried to put this apex trigger in our sandbox:
The purpose is to automatically add Entitlements to Cases from Web, Email, and Communities. 
I follow all the steps given in that article. But when I submit the trigger, I receive several errors, starting with "Compile Error: Variable does not exist: contactIds".

Do you know how to make this trigger work ?

Thank you!

Eric VitucciEric Vitucci
I am getting the same error not sure how to make this work.