How to call Apex class in trigger in Salesforce?
trigger sample on Account (before insert)
{
for(Account a : trigger.New)
{
sampleRest s = new sampleRest();
}
}
Sample Apex Class:
public class sampleRest
{
......................
......................
......................
......................
}
No comments:
Post a Comment