Create an Apex Class
As part of overriding the 255-character limitation, you need to create an Apex class.
-
In your org, in Settings, click Setup.
-
In Quick Find, enter
Apex
and click Apex Classes. -
Click New.
-
Copy the sample implementation provided above and paste it in the Apex Class Edit field.
-
Click Save.