You need to sign in to do that
Don't have an account?
Henry Sabia
Apex trigger case record type = account record type
New to Apex...
Need to create an Apex trigger to make the case_record_type the same as the account_record_type upon creation of a new case.
Use case is that we want to use specialized case layouts depending on the account type.
Thanks
Need to create an Apex trigger to make the case_record_type the same as the account_record_type upon creation of a new case.
Use case is that we want to use specialized case layouts depending on the account type.
Thanks
trigger updatefields on Case (before update) {
Case [] cases = Trigger.new;
if (case.recordtypeid=NULL){
(case.recordtypeid) = (account.recordtypeid);
}
}