You need to sign in to do that
Don't have an account?
Bill Button
How to check an ID field
How do you check an ID field is not blank, I get an exception error 'invalid id' on the following for the if statement.
Assignment__c AssignThis = [select Area_Account_Manager__c,Reseller__c from Assignment__c where Country__c = :a.Country and Region__C = :a.State];
SendEmail = 1;
a.OwnerId = AssignThis.Area_Account_Manager__c;
if (AssignThis.Reseller__c <> '') {
SendEmail = 1;
a.OwnerId = AssignThis.Area_Account_Manager__c;
if (AssignThis.Reseller__c <> '') {
a.Reseller__C = AssignThis.Reseller__C;
SendToReseller = 1;
}
SendToReseller = 1;
}
if (AssignThis.Reseller__c != null ) {
Hi Ron,
Thanks this worked great, I really appreciate the help.
Bill