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
dan.swaindan.swain 

Calling an SControl from Apex

Is it possible to call an SControl from Apex?

 

we have an SControl that performs various bits of validation and then signs a contract in affect.

 

I'm trying to write a  unit/integration test to replicate this. But I can't find a way.

 

Anyone?

Best Answer chosen by Admin (Salesforce Developers) 
mtbclimbermtbclimber
No. Scontrols are for UI scripting, not data validation.  Your validation logic should be in Apex Triggers unless your rules can be expressed with formulas (using validation rules).