I am calling another class from my trigger and it works in sandbox, but when I try to validate my deployment (I am using a change set to deploy) in prod, it says "variable does not exist: JobServiceAPI" I'm confused on why the error does not happen in sandbox and everything works fine.
trigger JobCreatedTrigger on Job_Created__e (after insert) {
for( Job_Created__e event : Trigger.New) {
JobServiceAPI.createJob(event.job_id__c, event.job_title__c);
}
}
Here is the simplified apex class:
public class JobServiceAPI {
public JobServiceAPI () {
}
public static void createJob(string jobId, string jobTitle) {
}
}
JobServiceAPI
class. I'd double check to make sure that it's included in your deployment.